Skip to content

Conversation

@anton-d
Copy link
Contributor

@anton-d anton-d commented Apr 1, 2014

Related issues are #2656, #2936 and #6753.

@jreback jreback added the Docs label Apr 1, 2014
@jreback jreback added this to the 0.14.0 milestone Apr 1, 2014
@jreback
Copy link
Contributor

jreback commented Apr 1, 2014

good..thanks!

jreback added a commit that referenced this pull request Apr 1, 2014
DOC: documented that .apply(func) executes func twice on the first time
@jreback jreback merged commit cf0ef42 into pandas-dev:master Apr 1, 2014
@jorisvandenbossche
Copy link
Member

@anton-d An advice: try to not mix tabs and spaces for indentation.

And something else, the alignment of your code example was not fully correct so it wouldn't render well (the ..ipython:: should start at the same indentation as the text of the warning), but that are tricky rst things to get right, so no problem (I corrected it here: 95a562c). And thanks for the contribution!

@ieipi
Copy link

ieipi commented May 14, 2020

is this deployed ?
i still got the issue(first group called twice): with version=0.24.2
d = pd.DataFrame({"a":["x", "y"], "b":[1,2]})

def identity(df): print (df) return df d.groupby("a").apply(identity) 

outputs:

a b
0 x 1
a b
0 x 1
a b
1 y 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants