timeatlas.time_series_dataset.TimeSeriesDataset.pad

TimeSeriesDataset.pad(limit: Union[int, str, pandas._libs.tslibs.timestamps.Timestamp], side: Optional[str] = None, value: Any = nan) → timeatlas.time_series_dataset.time_series_dataset.TimeSeriesDataset

Pad a TimeSeriesDataset until a given limit

Parameters
  • limit – int, str or Pandas Timestamp if int, it will pad the side given in the side arguments by n elements.

  • side

    Optional[str] side to which the TimeSeries will be padded. This arg can have two value: “before” and “after” depending where the padding is needed.

    This arg is needed only in case the limit is given in int.

  • value – Any values

Returns

TimeSeriesDataset