-
Notifications
You must be signed in to change notification settings - Fork 209
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
Errors on Pandas IntegerArray dtypes #683
Labels
Comments
pandas Extension Arrays (IntegerArray) are a challenge. Their abstraction is leaky, so they have many edge cases. In this case, the core problem is that they import numpy as np
import pandas as pd
s = pd.Series([1, 2, 3, 4], dtype='Int64')
s.to_numpy()
# array([1, 2, 3, 4], dtype=object) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like when two or more geoms are plotted and the input data is a Pandas IntegerArray, specifically a
pandas.Int64Dtype
. It's throwing theTypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
error.Found this out because for some reason my database driver's "to pandas" feature returns 64 bit int columns as this type instead of as a
numpy.int64
.The text was updated successfully, but these errors were encountered: