split_df_query

function of dascore.utils.pd source

split_df_query(
    kwargs ,
    df ,
    ignore_bad_kwargs = False,
)

Split kwargs into normal, range, and unsupported kwargs.

Normal query kwargs are the ones that apply directly to a single column. Range kwargs specify a range and the df must have {name}_min, {name}_max unsupported kwargs are the keys in kwargs that don’t meet these reqs.

For example, if columns ‘time_min’ and ‘time_max’ exist but ‘time’ does not, time=(time_1, time_2) will filter df to only include columns which have a range in specified time.