Nullable pa.Date field fails for NaT values #2170
Unanswered
bBekan-Maistra
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a field called confirmation_date which is nullable and has error coercion turned on. It passes the nullable check but fails on the dtype check with the following:
`
confirmation_date: pa.Date = pa.Field(nullable=True, coerce=True)
pandera.errors.SchemaError: expected series 'confirmation_date' to have type date:
failure cases:
index failure_case
0 0 NaT
1 1 NaT
2 2 NaT
3 3 NaT`
If i turn it into DateTIme, the error goes away but that's not an option since the data then get's loaded into AWS Athena where I need it to be in date form and not datetime... Shouldn't the check pass for dtype since it passed the null check?
Beta Was this translation helpful? Give feedback.
All reactions