pastas.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

pandas.index

Notes

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