Skip to content

Commit

Permalink
DOC: Fix syntax error in groupby docs (pandas-dev#23498)
Browse files Browse the repository at this point in the history
Follow-up to pandas-devgh-23394.
  • Loading branch information
gfyoung authored and Pingviinituutti committed Feb 28, 2019
1 parent cfda7bc commit 47d2da6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/source/groupby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ but the specified columns
.. ipython:: python
df2 = df.set_index(['A', 'B'])
grouped = df2.groupby(level=df2.index.names.difference(['B'])
grouped = df2.groupby(level=df2.index.names.difference(['B']))
grouped.sum()
These will split the DataFrame on its index (rows). We could also split by the
columns:
Expand Down

0 comments on commit 47d2da6

Please sign in to comment.