pastas.timeseries_utils.resample ================================ .. py:function:: pastas.timeseries_utils.resample(series: pandas.Series, freq: str, closed: str = 'right', label: str = 'right', **kwargs) -> pandas.core.resample.Resampler Resample time-series data. Convenience method for frequency conversion and resampling of time series. This function is a wrapper around Pandas' resample function with some logical Pastas defaults. In Pastas, we assume the timestamp is at the end of the period that belongs to each measurement. For more information on this read the example notebook on preprocessing time series. :param series: Time series. The index must be a datetime-like index (`DatetimeIndex`, `PeriodIndex`, or `TimedeltaIndex`). :type series: pandas Series :param freq: Frequency string. :type freq: str :param closed: Which side/end of bin interval is closed. :type closed: str, default 'right' :param label: Which bin edge label to label bucket with. :type label: str, default 'right' :param \*\*kwargs: :type \*\*kwargs: dict :returns: pandas Resampler object which can be manipulated using methods such as: '.interpolate()', '.mean()', '.max()' etc. For all options see: https://pandas.pydata.org/docs/reference/resampling.html :rtype: Resampler .. !! processed by numpydoc !!