-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Float Nullability if Entire Column None #1695
Labels
bug
Something isn't working
Comments
setting dtype=None in pa.Column seems to circumvent this, or explicitly setting the dtype in the dataframe prior to running validation. |
the problem is that pd.DataFrame({"test": [None, None, None]}) is interpreted by pandas as an object column. In this case, pandera is behaving as expected, since the schema = pa.DataFrameSchema(
{"test": pa.Column(float, nullable=True, coerce=True)}
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
It seems that if all the values for a dataframe column are None, nullability throws an error. Not sure if theres a reason for this, or I am doing something wrong.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Expected behavior
I would expect the check to pass.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: