dsipts.extend_time_df

dsipts.extend_time_df(x: DataFrame, freq: str | int, group: str | None = None, global_minmax: bool = False) DataFrame

Utility for generating a full dataset and then merge the real data

Parameters:
  • x (pd.DataFrame) – dataframe containing the column time

  • freq (str) – frequency (in pandas notation) of the resulting dataframe

  • group (string or None) – if not None the min max are computed by the group column, default None

  • global_minmax (bool) – if True the min_max is computed globally for each group. Usually used for stacked model

Returns:

a dataframe with the column time ranging from thr minumum of x to the maximum with frequency freq

Return type:

pd.DataFrame