timeatlas.time_series.TimeSeries.resample¶
-
TimeSeries.
resample
(freq: str, method: Optional[str] = None) → timeatlas.time_series.time_series.TimeSeries¶ Convert TimeSeries to specified frequency. Optionally provide filling method to pad/backfill missing values.
- Parameters
freq – string The new time difference between two adjacent entries in the returned TimeSeries. A DateOffset alias is expected.
method –
{‘backfill’/’bfill’, ‘pad’/’ffill’}, default None Method to use for filling holes in reindexed Series (note this does not fill NaNs that already were present):
’pad’/’ffil’: propagate last valid observation forward to next valid
’backfill’/’ffill’: use next valid observation to fill
- Returns
TimeSeries