Skip to content

Commit 0bb24b7

Browse files
gfyoungjorisvandenbossche
authored andcommitted
DOC: Fix syntax error in groupby docs (#23498)
Follow-up to gh-23394.
1 parent 64c3491 commit 0bb24b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/source/groupby.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ but the specified columns
133133
.. ipython:: python
134134
135135
df2 = df.set_index(['A', 'B'])
136-
grouped = df2.groupby(level=df2.index.names.difference(['B'])
136+
grouped = df2.groupby(level=df2.index.names.difference(['B']))
137+
grouped.sum()
137138
138139
These will split the DataFrame on its index (rows). We could also split by the
139140
columns:

0 commit comments

Comments
 (0)