pastas.timeseries_utils.get_sample#
- get_sample(tindex, ref_tindex)[source]#
Sample the index so that the frequency is not higher than the frequency of ref_tindex.
- Parameters:
tindex (pandas.Index) – Pandas index object.
ref_tindex (pandas.Index) – Pandas index object.
- Returns:
series
- Return type:
Notes
Find the index closest to the ref_tindex, and then return a selection of the index.