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
Hi, while a previous issue related to timezone management in pydantic and pandas was solved, see here, it seems that an incompatibility remains as shown by the code below.
The function tz_compare is indirectly used in pandera for schema validation and, therefore, validation breaks down when used with objects parsed by pydantic.
Please let me know if this issue should be reported to pandas instead. 😃
Nothing Pydantic can really do here: pandas is special casing each subclass of the datetime.tzinfo ABC subclass (see source code of get_timezone, used by tz_compare).
Initial Checks
Description
Hi, while a previous issue related to timezone management in
pydantic
andpandas
was solved, see here, it seems that an incompatibility remains as shown by the code below.The function
tz_compare
is indirectly used inpandera
for schema validation and, therefore, validation breaks down when used with objects parsed bypydantic
.Please let me know if this issue should be reported to
pandas
instead. 😃Thanks in advance for your guidance!
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: