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
polars
Enum
Originally posted by bzm3r August 31, 2024 I am using "ibis-framework[duckdb,polars]=9.3.0". I create a polars dataframe:
"ibis-framework[duckdb,polars]=9.3.0"
import polars as pl xs = ["a", "b", "c"] xs = pl.Series("x", xs, dtype=pl.Enum(xs)) df = pl.DataFrame(xs) print(df)
Which produces:
shape: (3, 1) ┌──────┐ │ x │ │ --- │ │ enum │ ╞══════╡ │ a │ │ b │ │ c │ └──────┘
Then, I load this using Ibis:
import ibis ibis.options.interactive = True t = ibis.memtable(df, name="t") print(t)
File ~/.venv/lib/python3.12/site-packages/ibis/expr/api.py:557, in _memtable_from_polars_dataframe(data, name, schema, columns) 553 assert schema is None, "if `columns` is not `None` then `schema` must be `None`" 554 schema = sch.Schema(dict(zip(columns, sch.infer(data).values()))) ... 75 ) 76 else: ---> 77 return _from_polars_types[base_type](nullable=nullable) KeyError: Enum
The text was updated successfully, but these errors were encountered:
jcrist
Successfully merging a pull request may close this issue.
Discussed in #9983
Originally posted by bzm3r August 31, 2024
I am using
"ibis-framework[duckdb,polars]=9.3.0"
. I create a polars dataframe:Which produces:
Then, I load this using Ibis:
Which produces:
The text was updated successfully, but these errors were encountered: