Expect values to be alphabetical.
expect_column_values_to_be_alphabetical
This expectation level is EXPERIMENTAL
Contributors:
Tags:
Metrics:
Description
Expect values to be alphabetical.
Given a list of string values, check if the list is alphabetical, either forwards or backwards (specified with the
reverse
parameter). Comparison is case-insensitive. Using mostly
will give you how many items are alphabetical
relative to the immediately previous item in the list.
Args:
- column (str): The column name
Keyword Args:
- reverse (boolean): Checks for Z to A alphabetical if True, otherwise checks A to Z
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