Skip to content

Age filter

AgeFilter #

AgeFilter(age_groups: list[AgeGroup])

Bases: RapidataFilter

AgeFilter Class

Can be used to filter who to target based on age groups.

Parameters:

Name Type Description Default
age_groups list[AgeGroup]

List of age groups to filter by.

required
Source code in src/rapidata/rapidata_client/filter/age_filter.py
def __init__(self, age_groups: list[AgeGroup]):
    self.age_groups = age_groups