We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64c3491 commit 0bb24b7Copy full SHA for 0bb24b7
doc/source/groupby.rst
@@ -133,7 +133,8 @@ but the specified columns
133
.. ipython:: python
134
135
df2 = df.set_index(['A', 'B'])
136
- grouped = df2.groupby(level=df2.index.names.difference(['B'])
+ grouped = df2.groupby(level=df2.index.names.difference(['B']))
137
+ grouped.sum()
138
139
These will split the DataFrame on its index (rows). We could also split by the
140
columns:
0 commit comments