pastas.timeseries_utils.pandas_equidistant_sample#
- pastas.timeseries_utils.pandas_equidistant_sample(series: pandas.Series, freq: str) pandas.Series#
Create equidistant time series creating a new DateTimeIndex with pandas.reindex.
Note: function attempts to pick an offset relative to freq such that the maximum number of observations is included in the sample.
- Parameters:
series (pandas Series) – time series
freq (str) – frequency str
- Returns:
equidistant time series with frequency ‘freq’
- Return type:
Series