Pandas Time Series Resampling and Interpolation
Jump to navigation
Jump to search
Internal
Overview
For time series, use resample()
. The object must have a datetime-like index (DatetimeIndex
, PeriodIndex
, TimedeltaIndex
) or the caller must pass the label of a date time-like series/index.
s.resample("2H").mean()
s.resample("1D").mean()