Expect each column value to be in a given set; optimized using **join** for spark backends.
expect_column_values_to_be_in_set_spark_optimized
This expectation level is BETA
Contributors:
Tags:
column values in set
experimental
spark optimized
Metrics:
column_values.in_set.spark_optimized
Description
Expect each column value to be in a given set; optimized using join for spark backends.
Args:
- column (str): The column name.
- value_set (set-like): A set of objects used for comparison.
Keyword Args:
- mostly (None or a float between 0 and 1): Successful if at least mostly fraction of values match the expectation. For more detail, see mostly.
- strict (boolean or None) : If True, percentage of values in set must exceed mostly.
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