Skip to content

Commit 95a562c

Browse files
DOC: correct alignment of GH6756
1 parent 4bd1e6a commit 95a562c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/source/groupby.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -666,21 +666,21 @@ The dimension of the returned result can also change:
666666
667667
.. warning::
668668

669-
In the current implementation apply calls func twice on the
670-
first group to decide whether it can take a fast or slow code
671-
path. This can lead to unexpected behavior if func has
672-
side-effects, as they will take effect twice for the first
673-
group.
669+
In the current implementation apply calls func twice on the
670+
first group to decide whether it can take a fast or slow code
671+
path. This can lead to unexpected behavior if func has
672+
side-effects, as they will take effect twice for the first
673+
group.
674674

675675
.. ipython:: python
676-
676+
677677
d = DataFrame({"a":["x", "y"], "b":[1,2]})
678678
def identity(df):
679-
print df
680-
return df
681-
679+
print df
680+
return df
681+
682682
d.groupby("a").apply(identity)
683-
683+
684684
685685
Other useful features
686686
---------------------

0 commit comments

Comments
 (0)