-
-
Notifications
You must be signed in to change notification settings - Fork 370
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Got the error TypeError: Data type 'Time' not understood by Engine. when I tried to use polars.Time as a Data Type on a DataFrameModel
- I have checked that this issue has not already been reported.
- I have confirmed this bug exists on the latest version of pandera.
- (optional) I have confirmed this bug exists on the main branch of pandera.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
from pandera import DataFrameModel, Field
from pandera.typing import Series
from pandera.engines.polars_engine import Time
# from polars import Time
class TimeDataModel(DataFrameModel):
time: Series[Time] = Field(nullable=False, coerce=True)
if __name__ == "__main__":
TimeDataModel.to_schema()Expected behavior
Given that Time is inside the supported Data Types, it should work as intended like any other type.
Desktop (please complete the following information):
- OS: Windows 10
- Python: 3.12.9
- pandera: 0.23.1
- polars: 1.25.2
Additional info
Error when using pandera.engines.polars_engine.Time:
TypeError: Data type 'Time' not understood by Engine.
Error when using polars.Time:
TypeError: dtype 'Time' not understood
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working