Create equidistant time series using pandas.reindex with method=’nearest’.
Note: this method will shift observations in time and can introduce duplicate
observations.
- Parameters
series (str) – time series.
freq (str) – frequency string.
tolerance (str, optional) – frequency type string (e.g. ‘7D’) specifying maximum distance between original
and new labels for inexact matches.
- Returns
equidistant time series with frequency ‘freq’
- Return type
Series