openclean.function.value.null module
Collection of scalar predicates that check for empty and null values.
- openclean.function.value.null.is_empty(value, ignore_whitespace=False)
Test values for being an empty string or None. If the ignore whitespace flag is True any string that only contains whitespace characters is also considered empty.
- Parameters
value (scalar) – Scalar value that is tested for being empty.
ignore_whitespace (bool, optional) – Trim non-None values if the flag is set to True.
- Return type
bool
- openclean.function.value.null.is_none(value)
Test if a given value is None.
- Parameters
value (scalar) – Scalar value that is tested for being None.
- Return type
bool
- openclean.function.value.null.is_not_empty(value, ignore_whitespace=False)
Test values for being is not empty string or None. If the ignore whitespace flag is True any string that only contains whitespace characters is also considered empty.
- Parameters
value (scalar) – Scalar value that is tested for being empty.
ignore_whitespace (bool, optional) – Trim non-None values if the flag is set to True.
- Return type
bool
- openclean.function.value.null.is_not_none(value)
Test if a given value is not None.
- Parameters
value (scalar) – Scalar value that is tested for being None.
- Return type
bool