prepare_historical_dataframes
- postprocessinglib.forecast.forecast.prepare_historical_dataframes(short_term_df, long_term_df, upper_bounds_dfs, lower_bounds_dfs)
Prepare climatology DataFrames expanded to match timestamps of short_term_df, with separate lists of upper and lower bound DataFrames.
- Parameters:
short_term_df – DataFrame with datetime index.
long_term_df – DataFrame indexed by jday (1-366) for median or central tendency.
upper_bounds_dfs – List of DataFrames indexed by jday (1-366) for upper bounds (e.g. q95, max, q75).
lower_bounds_dfs – List of DataFrames indexed by jday (1-366) for lower bounds (e.g. q5, min, q25).
- Returns:
DataFrame with same index as short_term_df (median/centerline) expanded_upper_bounds: List of DataFrames with same index as short_term_df (upper bounds) expanded_lower_bounds: List of DataFrames with same index as short_term_df (lower bounds)
- Return type:
expanded_climatology