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
I would think [7] and [8] would be identical. Note this is true for all ops I have looked at, so it is a general issue.
[7]
[8]
In [6]: df = DataFrame({'A': ['foo', 'bar', 'foo', 'bar', 'foo', 'bar', 'foo', 'foo'], 'B': ['one', 'one', 'two', 'two', 'two', 'two', 'one', 'two'], 'C': np.random.randn(8) + 1.0, 'D': np.arange(8)}) In [7]: df.groupby(['A']).B.count() Out[7]: A bar 3 foo 5 Name: B, dtype: int64 In [8]: df.B.groupby(df.A).count() Out[8]: A bar 3 foo 5 dtype: int64
The text was updated successfully, but these errors were encountered:
xref #8093
Sorry, something went wrong.
ENH: allow .rolling / .expanding as groupby methods
f98e6f8
closes pandas-dev#12738 BUG: allow df.groupby(...).resample(...) to return a Resampler groupby object closes pandas-dev#12486 BUG: consistency of name of returned groupby closes pandas-dev#12363
6994240
Successfully merging a pull request may close this issue.
I would think
[7]
and[8]
would be identical. Note this is true for all ops I have looked at, so it is a general issue.The text was updated successfully, but these errors were encountered: