Skip to content

Groupby and transform on DataFrame produces FutureWarning #2912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
abielr opened this issue Feb 21, 2013 · 2 comments
Closed

Groupby and transform on DataFrame produces FutureWarning #2912

abielr opened this issue Feb 21, 2013 · 2 comments
Labels
Milestone

Comments

@abielr
Copy link

abielr commented Feb 21, 2013

Using pandas 0.10.1:

df1 = pd.DataFrame(np.random.randn(10))
df1.groupby(np.arange(len(df1))).transform(lambda x: x)

produces:

FutureWarning: rename with inplace=True  will return None from pandas 0.11 onward.

In the release notes for 0.10.1 I saw the changes regarding functions with the inplace option. However, it didn't seem like the above code should naturally lead to such a warning. No warning is produced if the same operation is done on a Series.

@ghost ghost mentioned this issue Feb 22, 2013
@ghost
Copy link

ghost commented Mar 17, 2013

This is known and will be going away very soon.

@ghost
Copy link

ghost commented Mar 20, 2013

closing as dupe of #1893.

@ghost ghost closed this as completed Mar 20, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant