create_panels
- create_panels(df: pd.DataFrame, lookback: int, horizon: int, gap: int = 0) tuple[Panel, Panel] [source]
Create panels from a dataframe.
- Parameters
df (
pd.DataFrame
) – Dataframelookback (
int
) – Lookback sizehorizon (
int
) – Horizon sizegap (
int
) – Gap size
- Returns
Tuple of panels
- Return type
tuple[Panel, Panel]