Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for polars.Enum #1767

Open
shenrun opened this issue Jul 27, 2024 · 1 comment
Open

Add support for polars.Enum #1767

shenrun opened this issue Jul 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@shenrun
Copy link

shenrun commented Jul 27, 2024

The polars.Enum does not work in data model definition.

import pandera.polars as pa
from pandera.typing import Series
class Foo(pa.DataFrameModel):
#    emum: pl.Enum(['a','b']) 
    emum: Series[pl.Enum] = pa.Field(dtype_kwargs={"categories":('a','b')})
@shenrun shenrun added the enhancement New feature or request label Jul 27, 2024
@gab23r gab23r mentioned this issue Sep 2, 2024
@ksolarski
Copy link
Contributor

This now has been done in #1798. However, I believe the documentation on the website hasn't been updated as it doesn't list Enum data type under polars engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants