src.plot.format

Module Contents

src.plot.format.format_limits(df_meta, df_data=None)[source]

Format the transformer limits for plotting.

Parameters
df_meta: pd.DataFrame

DataFrame with the trasnformer limits.

df_data: pd.DataFrame

Optionally, the historic preprocess to determine the time range for the limits.

Returns
A DataFrame with the limits to plot.
src.plot.format.format_history(df_data)[source]

Format the historic for plotting.

Parameters
df_data: pd.DataFrame

The historic preprocess to be plotted.

Returns
A DataFrame with the historic preprocess to plot.
src.plot.format.format_forecast(df_forecast)[source]

Format the forecasted load.

Parameters
df: pd.DataFrame
Returns
pass through input
src.plot.format.dummy_forecast(df)[source]

Create a dummy forecast with median and Q10-Q90 based on historic preprocess to test plotting function.

Parameters
dfpd.DataFrame

Historic preprocess to use as a basis

Returns
pd.DataFrame

Forecast preprocess that can be used to plot with plot_forecast()