cdm_reader_mapper.DataBundle.select_where_entry_isin#
- DataBundle.select_where_entry_isin(selection, inplace=False, do_mask=True, **kwargs)[source]#
Select rows from
datawhere column entries are in a specific value list.- Parameters:
selection (
dict) – Keys: Column names indata. Values: Specific value list.inplace (
bool) – IfTrueoverwritedatainDataBundleelse return a copy ofDataBundlewith selected columns only indata. Default: False
- Return type:
- Returns:
DataBundleorNone– DataBundle containing rows where column entries are in a specific value list or None ifinplace=True.
Examples
Select without overwriting the old data.
>>> db_selected = db.select_where_entry_isin( ... selection={("c1", "B1"): [26, 41]}, ... )
Select with overwriting the old data.
>>> db.select_where_entry_isin(selection={("c1", "B1"): [26, 41]}, inplace=True) >>> df_selected = db.data
See also
DataBundle.select_where_index_isinSelect rows from data within specific index list.
DataBundle.select_where_all_trueSelect rows from data where all entries in mask are True.
DataBundle.select_where_all_falseSelect rows from data where all entries in mask are False.
Note
For more information see
split_by_column_entries()