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

ibis plot fails with dtype date32 #3473

Closed
MarcoGorelli opened this issue Jul 11, 2024 · 1 comment · Fixed by #3452
Closed

ibis plot fails with dtype date32 #3473

MarcoGorelli opened this issue Jul 11, 2024 · 1 comment · Fixed by #3452
Labels

Comments

@MarcoGorelli
Copy link
Contributor

What happened?

import polars as pl
import altair as alt
from datetime import date

import ibis
df = pl.DataFrame(
    {
        "a": [1,2,3],
        "b": [date(2020, 1, 1), date(2020, 1, 2), date(2020, 1, 3)],
    }
)
tbl = ibis.memtable(df)
print(tbl.to_pyarrow())
alt.Chart(tbl).mark_line().encode(x="a", y="b").to_json()

raises:

ValueError: Data type date32[day] not supported by interchange protocol

What would you like to happen instead?

Plot it without raising

Which version of Altair are you using?

5.3.0

@jonmmease
Copy link
Contributor

Here is the upstream issue: apache/arrow#39539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants