filter_cohort_id
filter_cohort_id(cohort, cohort_id)Filter cohort to rows with cohort_definition_id in cohort_id. If cohort_id is None, return cohort unchanged.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| cohort | Any | Ibis table or DataFrame with cohort_definition_id. | required |
| cohort_id | int or list[int] or None | cohort_definition_id(s) to keep; None returns cohort unchanged. | required |
Returns
| Name | Type | Description |
|---|---|---|
| Any | Filtered table or DataFrame. |