yield_range_tuple_from_kwargs

function of dascore.utils.pd source

yield_range_tuple_from_kwargs(
    df ,
    kwargs ,
)-> ‘tuple[str, slice]’

For each slice keyword, yield the name and a tuple of (start, stop).

Will also convert values based on dtypes in dataframe, eg time=(1, 10) will convert to time=(np.timedelta64(1, ‘s’), np.timedelta64(10, ‘s’)) provided columns ‘time_min’ and ‘time_max’ are datetime columns.