Open danieldanciu opened 1 month ago
Thank you for opening your first issue here! 🛠
The issue arises because PanderaTransformer::to_python_value()
returns a pandas.DataFrame
instead of a pandera.typing.DataFrame
. This discrepancy is due to the instantiation of pandera.DataFrameSchema
, which returns a pandas.DataFrame
.
Would you like more detail on how to address this issue?
Sources:
This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not.
Mention @runllm to ask follow-up questions. See runllm.com for more!
The return type of the
to_python_value
of the pandera type transformer seems incorrect. Currently, the returned type ispandas.core.frame.DataFrame
, but the declared return type ispandera.typing.DataFrame
. I suspect this is because instantiatingpandera.DataFrameSchema
returns apandas.core.frame.DataFrame
, rather than what one would normally expect, namely apandera.typing.DataFrame
.I will propose an MR to fix this shortly.