You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is correct, if you pass a Series if will first .align it. So that's why you get an empty result set.
This is not a bug, though I suppose could be better documented.
jreback
changed the title
.groupby on Series with disjunct index results in empty groups
.groupby by should indicate it aligns the passed in Series
Feb 10, 2017
Code Sample, a copy-pastable example if possible
Problem description
The current behavior is a bug because the .groupby() documentation says about
by
parameter:Above example shows this not being the case.
Expected Output
With above setup:
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: