where
data.Dataset.where(**conditions)
Filter the dataset given some selectors.
Examples
To select subjects by their IDs:
= dataset.where(subject_id=['001', '002']) dataset
To select subjects by a regex pattern:
= dataset.where(regex=True, subject='^00[1-2]$') dataset
To select activities by their names:
= dataset.where(activity=['NB', 'SOS']) dataset
Parameters
Name | Type | Description | Default |
---|---|---|---|
conditions |
Any | list of study flow condition to select, or a regex pattern. For example, subject_id=['001', '002'] or subject_id=r'00[1-2]' . |
{} |