-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
pivot_table aggregate changes data type #713
Comments
There are a few places that this happens: see issue #622. Problem is representation of NaN in integer does not exist in pandas. for now. |
if you replace the NaNs with some other value and cast to integer, that will work:
#622 is actually a separate issue re: richer handling of the NumPy type hierarchy |
Except with mixed types:
Desired:
|
Unfortunately there's nothing that can be done until NA support in NumPy improves (not clear if that will ever happen) |
IMHO the result should be integer type:
Love pandas!
The text was updated successfully, but these errors were encountered: