-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling empty string in DateFormatValidation #40
Comments
Okay so the current So basically Unfortunately this would be a breaking change so I can't fix it without a major version, but I'll try to work out something more logical for 1.0.0. In the meantime, you can use some kind of boolean logic to work around this. Maybe |
I tried adding the CustomSeriesValidation as shown below:
however i'm getting the following output
the error does not seem to be pointing to the correct location. |
Oh, is should be |
Replacing "==" with "!=" does not return any errors 😕
|
Oh right. I think the Also note that in your example you're not using the Column(
'Datetime',
[
CustomSeriesValidation(lambda s: s.isnull(), 'is not null') |
DateFormatValidation('%Y-%m-%d %H:%M')
], allow_empty=False
) |
Hi,
I am experimenting with the DateFormatValidation validator on the following test example:
It seems to me that there is a bug with regards to handling empty string '' as I'm not getting back any errors. I do get an error however if I use double whitespace for example. But it looks like the validator considers empty string as NULL.
Other than that thanks alot for this package really handy!
The text was updated successfully, but these errors were encountered: