Skip to content

Country filter

CountryFilter #

CountryFilter(country_codes: list[str])

Bases: RapidataFilter, BaseModel

CountryFilter Class

Can be used to filter who to target based on country codes.

Parameters:

Name Type Description Default
country_codes list[str]

List of country codes (capitalized) to filter by.

required
Source code in src/rapidata/rapidata_client/filter/country_filter.py
def __init__(self, country_codes: list[str]):
    super().__init__(country_codes=country_codes)