We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In furtherance of #16858
It seems that if we have
from enum import auto, StrEnum import polars as pl class Color(StrEnum): red = auto() green = auto() blue = auto()
that the following should return a column that is an Enum type
df = pl.DataFrame({'color': [Color.red, Color.green, Color.blue]})
should return the color column as a pl.Enum in the same way that pl.lit was made to.
pl.Enum
pl.lit
Similarly, we should be able to do pl.Enum(Color)
pl.Enum(Color)
The text was updated successfully, but these errors were encountered:
deanm0000
Successfully merging a pull request may close this issue.
Description
In furtherance of #16858
It seems that if we have
that the following should return a column that is an Enum type
should return the color column as a
pl.Enum
in the same way thatpl.lit
was made to.Similarly, we should be able to do
pl.Enum(Color)
The text was updated successfully, but these errors were encountered: