TimeSeries.
resample
Convert TimeSeries to specified frequency. Optionally provide filling method to pad/backfill missing values.
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
TimeSeries