cdm_reader_mapper.DataBundle.select_where_entry_isin

cdm_reader_mapper.DataBundle.select_where_entry_isin#

DataBundle.select_where_entry_isin(selection, inplace=False, do_mask=True, **kwargs)[source]#

Select rows from data where column entries are in a specific value list.

Parameters:
  • selection (dict) – Keys: Column names in data. Values: Specific value list.

  • inplace (bool) – If True overwrite data in DataBundle else return a copy of DataBundle with selected columns only in data. Default: False

  • do_mask (bool) – If True also do selection on mask.

Return type:

DataBundle | None

Returns:

DataBundle or None – DataBundle containing rows where column entries are in a specific value list or None if inplace=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_isin

Select rows from data within specific index list.

DataBundle.select_where_all_true

Select rows from data where all entries in mask are True.

DataBundle.select_where_all_false

Select rows from data where all entries in mask are False.

Note

For more information see split_by_column_entries()