Skip to content

Commit

Permalink
DOC: correct alignment of GH6756
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Apr 1, 2014
1 parent 4bd1e6a commit 95a562c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions doc/source/groupby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -666,21 +666,21 @@ The dimension of the returned result can also change:
.. warning::

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

.. ipython:: python
d = DataFrame({"a":["x", "y"], "b":[1,2]})
def identity(df):
print df
return df
print df
return df
d.groupby("a").apply(identity)
Other useful features
---------------------
Expand Down

0 comments on commit 95a562c

Please sign in to comment.