cdm_reader_mapper.DataBundle.split_by_boolean_true#
- DataBundle.split_by_boolean_true(do_mask=True, **kwargs)[source]#
Split
databy rows where all column entries inmaskare True.Parameteers#
- do_mask: bool
If
Truealso do selection onmask.
- rtype:
- returns:
tuple– FirstDataBundleincluding rows where all column entries inmaskare True. SecondDataBundleincluding rows where all column entries inmaskare False.
Examples
Split DataBundle.
>>> db_true, db_false = db.split_by_boolean_true()
See also
DataBundle.split_by_boolean_falseSplit data by rows where all entries in mask are False.
DataBundle.split_by_column_entriesSplit data by rows where column entries are in a specific value list.
DataBundle.split_by_indexSplit data by rows within specific index list.
Note
For more information see
split_by_boolean_true()