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
https://github.com/pandas-dev/pandas/pull/14649/files#r94330188
This seems unfriendly, should instead b a DataError
DataError
In [8]: s = Series([1,2,3],[np.nan,np.nan,np.nan]) In [9]: s.groupby(s.index).sum() TypeError: unhashable type: 'Float64Index'
The text was updated successfully, but these errors were encountered:
@jreback , what should be the output? I want to work on it.
Sorry, something went wrong.
actually on second thought this should just be s grouper that is empty (we skip all nan groups); so if u fix the grouping it should just work
Thanks @jreback , I am trying.
I think this returns a reasonable output now (all groups are dropped). Could use a test
In [43]: s.groupby(s.index).sum() Out[43]: Series([], dtype: int64) In [44]: pd.__version__ Out[44]: '1.3.0.dev0+1485.g6abb567cb1'
Successfully merging a pull request may close this issue.
https://github.com/pandas-dev/pandas/pull/14649/files#r94330188
This seems unfriendly, should instead b a
DataError
The text was updated successfully, but these errors were encountered: