Empty (all-null) or missing fields with Python (non-Pandas) types fail validation despite coerce=True
and nullable=True
#1866
Labels
bug
Something isn't working
Describe the bug
Pandera raises
SchemaError
when passed data with an entirely empty or missing non-Pandas type column, despite use ofcoerce=True
,nullable=True
andadd_missing_columns=True
, whereas an equivalent Pandas-type column is filled with null values as expected.Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
This was run with:
Expected behavior
In the example above, I would expect the non-Pandas type column (
date
) to behave identically to a pandas type column (timestamp
) i.e. here be filled with a null value (NaT
) when:This is not specific to date types, that's just for illustration; you can swap out for
int
/pa.Int
etc.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: