format_ffn_performance_stats_grouped

Documentation for eth_defi.research.vault_metrics.format_ffn_performance_stats_grouped function.

format_ffn_performance_stats_grouped(report, prefix_series=None)

Format FFN report as logically grouped sections.

Returns a list of (heading, series) tuples where each tuple represents a group of related metrics. The groups correspond to the None separators in FFN’s PerformanceStats._stats().

Parameters
  • report (ffn.core.PerformanceStats) – FFN performance report to format.

  • prefix_series (Optional[pandas.Series]) – Extra header data to prepend to the first group.

Returns

List of (heading, series) tuples for each logical group.

Return type

list[tuple[str, pandas.Series]]