Pandas Time Series Resampling and Interpolation

From NovaOrdis Knowledge Base
Revision as of 02:21, 21 October 2023 by Ovidiu (talk | contribs) (Created page with "=Internal= * Series =Overview= For time series, use <code>resample()</code>. The object must have a datetime-like index (<code>DatetimeIndex</c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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()