-
Notifications
You must be signed in to change notification settings - Fork 793
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
Boolean numpy-backed type fails when pyarrow is installed in env #3205
Comments
Thanks for the report @pavlomuts. This looks like something we'll need to report upstream to pandas and work around in Altair. I'll try to take a closer look soon. |
Reported upstream in pandas-dev/pandas#55332 and worked around in #3210. We should be able to get this into the 5.1.2 release next week. A workaround in the meantime is to specify the encoding type of the boolean column explicitly (e.g. for the default of nominal encoding use chart = alt.Chart(data).mark_circle().encode(x="x", y="y", color="flag:N") |
I am using altair with
pandas
dataframe with numpy-backed types and I usingstreamlit
to visualize it.streamlit
haspyarrow
as dependency and it turns out that datatype inference using pyarrow fails for nullable boolean of pandas dtype. Small (unrealistic) example reproduces the error:Traceback:
And my environment:
Thank you for taking a looking and for making such a great tool!
The text was updated successfully, but these errors were encountered: