great_expectations.data_asset.util
¶
Module Contents¶
Classes¶
|
Functions¶
|
This is a simple helper utility that can be used to parse a string result_format into the dict format used |
|
Helper function to convert a dict object to one that is serializable |
|
Ensure no quote nor \n are introduced in row_condition string. |
-
great_expectations.data_asset.util.
parse_result_format
(result_format)¶ This is a simple helper utility that can be used to parse a string result_format into the dict format used internally by great_expectations. It is not necessary but allows shorthand for result_format in cases where there is no need to specify a custom partial_unexpected_count.
-
great_expectations.data_asset.util.
recursively_convert_to_json_serializable
(test_obj)¶ Helper function to convert a dict object to one that is serializable
- Parameters
test_obj – an object to attempt to convert a corresponding json-serializable object
- Returns
(dict) A converted test_object
Warning
test_obj may also be converted in place.
-
great_expectations.data_asset.util.
ensure_row_condition_is_correct
(row_condition_string)¶ Ensure no quote nor \n are introduced in row_condition string.
Otherwise it may cause an issue at the reload of the expectation. An error is raised at the declaration of the expectations to ensure the user is not doing a mistake. He can use double quotes for example.
- Parameters
row_condition_string (str) – the pandas query string