great_expectations
great_expectations copied to clipboard
Date to be between 2 date ranges
Discussed in https://github.com/great-expectations/great_expectations/discussions/4276
Originally posted by kyleaton February 25, 2022 Hello!
It will be great to have an expectation that checks a date column to be between 2 date ranges.
This should be possible using the expect_column_values_to_be_between
expectation: https://greatexpectations.io/expectations/expect_column_values_to_be_between
You might have to set parse_strings_as_datetimes=True
.
This should be possible using the
expect_column_values_to_be_between
expectation: https://greatexpectations.io/expectations/expect_column_values_to_be_betweenYou might have to set
parse_strings_as_datetimes=True
.
I places parse_string_as_datetimes = True and it errors out. Is parse strings as date time deprecated or is it currently supported?
Same here, it is giving me an error message - could not convert string to float.
Same here, it is giving me an error message - could not convert string to float.
Which version of great expectations are you using?
Sorry, for the late reply. I am using the version 0.18.3. I have written a custom expectation for this and is fulfilling my need now.