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

Pad a TimeSeries until a given limit

Padding a TimeSeries on left or right sides.

  • 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