solarforecastarbiter.reports.figures.plotly_figures.construct_metrics_dataframe

solarforecastarbiter.reports.figures.plotly_figures.construct_metrics_dataframe(metrics, rename=None)[source]

Possibly bad assumptions: * metrics contains keys: name, Total, etc.

Parameters:
  • metrics (list of datamodel.MetricResults) – Each metric dict is for a different forecast. Forecast name is specified by the name key.
  • rename (function or None) – Function of one argument that is applied to each forecast name.
Returns:

df (pandas.DataFrame) – Dataframe of computed metrics for the report.