@expect_downsample_frequency
@templated_docstring(frequency=PIPELINE_DOWNSAMPLING_FREQUENCY_DOC)
def select_sampling_indices(dates, frequency):
 return changed_locations(_dt_to_period[frequency](dates), include_first=True)

@ expect_downsample_frequency @ templated_docstring ( frequency = PIPELINE_DOWNSAMPLING_FREQUENCY_DOC ) def select_sampling_indices ( dates , frequency ) : return changed_locations ( _dt_to_period [ frequency ] ( dates ) , include_first = True )
choose entries from dates to use for downsampling at frequency .