where

data.Dataset.where(**conditions)

Filter the dataset given some selectors.

Examples

To select subjects by their IDs:

dataset = dataset.where(subject_id=['001', '002'])

To select subjects by a regex pattern:

dataset = dataset.where(regex=True, subject='^00[1-2]$')

To select activities by their names:

dataset = dataset.where(activity=['NB', 'SOS'])

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]'. {}