Open gsamatt opened 1 day ago
Just adding something related here - the same error happens for Decimal type (if we specify it in the schema).
Enum support seems to be marked as a TODO in the comments:
@Zan-L You can create a new issue if you have a failing example:
pl.read_csv(b"a,b\n1.2,3.4", schema={"a": pl.Decimal(scale=3), "b": pl.String})
# shape: (1, 2)
# ┌──────────────┬─────┐
# │ a ┆ b │
# │ --- ┆ --- │
# │ decimal[*,3] ┆ str │
# ╞══════════════╪═════╡
# │ 1.200 ┆ 3.4 │
# └──────────────┴─────┘
@cmdlineluser Sorry to have misinformed - Decimal can be read correctly now! It was something in my backlog for quite some time, but I couldn't remember to submit a new issue. Never mind!
Checks
Reproducible example
Log output
Issue description
Can not parse enums from CSV.
Expected behavior
Not crash and parse enums from csv
Installed versions