format_lifetime_table

Documentation for eth_defi.research.vault_metrics.format_lifetime_table function.

format_lifetime_table(df, add_index=False, add_address=False, add_share_token=False, drop_blacklisted=True, profit_presentation='split')

Format table for human readable output.

See calculate_lifetime_metrics()

Parameters
  • add_index – Add 1, 2, 3… index column

  • add_address

    Add address as a separate column.

    For vault address list copy-pasted.

  • drop_blacklisted – Remove vaults we have manually flagged as troublesome.

  • df (pandas.core.frame.DataFrame) –

  • profit_presentation (Literal['split', 'net_only']) –

Returns

Human readable data frame

Return type

pandas.core.frame.DataFrame