oscar_colony.historical_stats.calculate_historical_stats_for_line#

oscar_colony.historical_stats.calculate_historical_stats_for_line(standardised_data, line_name)[source]#

Calculate summary statistics for a specific line from standardised historical data.

Parameters:
  • standardised_data (DataFrame) – Standardised historical data e.g. from standardise_pyrat_csv

  • line_name (str) – Name of line

Returns:

Summary statistics for the given line

Return type:

LineStatistics