You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Pandera's DataFrameSchema does not properly handle datetime with timezone (datetime64[ns, UTC]) when using Pendulum's datetime. When applying Pandera checks with timezone-aware datetime indexes, it raises a pandera.errors.SchemaError, despite the data type being correctly defined as datetime64[ns, UTC].
Error message: pandera.errors.SchemaError: expected series 'None' to have type datetime64[ns, UTC], got datetime64[ns, UTC]
I have checked that this issue has not already been reported.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
The expected behavior is for the DataFrameSchema validation to pass without errors when using a timezone-aware datetime index (datetime64[ns, UTC]), when utilizing Pendulum's datetime objects.
Desktop (please complete the following information):
OS: Ubuntu 20.04
Browser: Chrome
Version: pandera==0.20.4
The text was updated successfully, but these errors were encountered:
Describe the bug
Pandera's DataFrameSchema does not properly handle datetime with timezone (datetime64[ns, UTC]) when using Pendulum's datetime. When applying Pandera checks with timezone-aware datetime indexes, it raises a pandera.errors.SchemaError, despite the data type being correctly defined as datetime64[ns, UTC].
Error message:
pandera.errors.SchemaError: expected series 'None' to have type datetime64[ns, UTC], got datetime64[ns, UTC]
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
The expected behavior is for the DataFrameSchema validation to pass without errors when using a timezone-aware datetime index (datetime64[ns, UTC]), when utilizing Pendulum's datetime objects.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: