Replies: 2 comments 1 reply
-
Hi @opme. Pandera tries to stay close to pandas. Therefore, if you use |
Beta Was this translation helpful? Give feedback.
0 replies
-
@opme I'm going to convert this into a discussion, please mark @jeffzi's answer as correct if it addresses your issue! |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Question about pandera
I have requirement to validate an integer field that can also be nullable. I also want to use coerce on the pandas dataframe. If field is nullable, then coerce should ignore it when null.
bad request: Error while coercing 'myintegerfield' to type int64: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
In the pandera docs:
Note the special case of integers columns not supporting nan values. In this case, schema.validate will complain if coerce == True and null values are allowed in the column.
But pandas is supporting nulls in integers now:
https://pandas.pydata.org/pandas-docs/stable/user_guide/integer_na.html
Beta Was this translation helpful? Give feedback.
All reactions