Replies: 1 comment 1 reply
-
Hi @zarch direct use of pydantic types is currently not supported. Today you can only do row-wise validation using a pydantic model: https://pandera.readthedocs.io/en/stable/pydantic_integration.html#using-pydantic-models-in-pandera-schemas Feel free to open up an issue and create a PR for this! Basically it boils down to implementing a pandera type in pandas_engine.py, see this guide for more info |
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.
-
Dear all,
I would like to define a
DataFrameModel
that is using pydantic types.From the documentation I did not see an example, but from my understanding of the documentation it should be possible.
However, when I execute the code I get an error that I don't know how to fix.
The return error is:
The
dtype_kwargs
variable is:While the
annotation.arg
is:<class 'pydantic_core._pydantic_core.Url'>
.Is it pandas that is not handling correctly the data type annotations?
Beta Was this translation helpful? Give feedback.
All reactions