Expect the column values to be probabilistically greater than or equal to the specified threshold.
expect_column_values_to_be_probabilistically_greater_than_or_equal_to_threshold
This expectation level is EXPERIMENTAL
Contributors:
Tags:
Metrics:
Description
Expect the column values to be probabilistically greater than or equal to the specified threshold.
This function builds upon the custom column map expectations of Great Expectations. This function asks a yes/no question of each row in the user-specified column; namely, does the confidence threshold provided by the DataProfiler model exceed the user-specified threshold.
Args:
- column (str): The column name that you want to check.
- threshold (float): The value, usually as a decimal (e.g. .32), you want to use to flag low confidence predictions
df.expect_column_values_to_be_probabilistically_greater_than_or_equal_to_threshold(
column,
threshold=float(0<=1)
)
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