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
Returns

series

Return type

pandas.Index

Notes

Find the index closest to the ref_tindex, and then return a selection of the index.