Expect a column to have N distinct values, with an filter.
expect_queried_column_to_have_n_distinct_values_with_condition
This expectation level is EXPERIMENTAL
Description
Expect a column to have N distinct values, with an filter.
Args:
- template_dict: dict with the following keys: column_to_check (column to check uniqueness on. can be multiple column names separated by comma), condition (the filter for boolean column, you can provide just the column name, evaluated to True), num_of_distinct_values (number of distinct values the column is supposed ot have)
Want to make your own Expectation or an improvement to this one?
We've put together some great how to guides (including videos) on how to create your own expectations in a flash!
You can see those resources here: Contributor Resources