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
as_index doesn't seem to work for non reductive operations
as_index
Note: I've only tested with head
head
In [7]: df = pd.DataFrame({'item_id': ['b', 'b', 'a', 'c', 'a', 'b'], 'user_id': [1,2,1,1,3,1], 'time': ra nge(6)}) In [8]: df.groupby('user_id', as_index=False).sum() Out[8]: user_id time 0 1 10 1 2 1 2 3 4 In [9]: df.groupby('user_id', as_index=False).head() Out[9]: item_id time user_id user_id 1 0 b 0 1 2 a 2 1 3 c 3 1 5 b 5 1 2 1 b 1 2 3 4 a 4 3
from this SO question
The text was updated successfully, but these errors were encountered:
came up again today: http://stackoverflow.com/questions/18431821/trying-to-create-a-stacked-bar-chart-of-the-top-10-issues-per-month/18432218#18432218
Sorry, something went wrong.
cpcloud
Successfully merging a pull request may close this issue.
as_index
doesn't seem to work for non reductive operationsNote: I've only tested with
head
from this SO question
The text was updated successfully, but these errors were encountered: