pastas.timeseries_utils.get_sample_for_freq =========================================== .. py:function:: pastas.timeseries_utils.get_sample_for_freq(s: pandas.Series | pandas.DataFrame, freq: str, tmin: pandas.Timestamp | str | None = None, tmax: pandas.Timestamp | str | None = None) Sample a pandas Series or DataFrame so that the frequency is not higher than a supplied frequency. :param s: The original Series or DataFrame to be sampled. :type s: pandas.Series or pandas.DataFrame :param freq: A frequency string accepted by `pandas.date_range()`. :type freq: str :param tmin: The start date of the sampled series. If None, the tmin is set to the first index of s. The default is None. :type tmin: pandas.Timestamp or str, optional :param tmax: The end date of the sampled series. If None, the tmax is set to the last index of s. The default is None. :type tmax: pandas.Timestamp or str, optional :returns: The sampled series, consisting of a subset of the original series. :rtype: pandas.Series .. !! processed by numpydoc !!