Skip to content

groupby.transform failing in 0.13 #5712

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
MichaelWS opened this issue Dec 16, 2013 · 5 comments · Fixed by #5713
Closed

groupby.transform failing in 0.13 #5712

MichaelWS opened this issue Dec 16, 2013 · 5 comments · Fixed by #5713
Labels
Bug Groupby Regression Functionality that used to work in a prior pandas version
Milestone

Comments

@MichaelWS
Copy link
Contributor

I have used groupby.transform to compute a number of statistics on data that is grouped by date. It seems to fail on indexing

All of my tests are failing for 0.13 but work in 0.12.

Here is one example:
the following three lines work fine in 0.12 and fails in 0.13.
print cik_df.head()
cik_df["portfolio_rank"] = cik_df.groupby("ex_date")["value"].transform(lambda x: x.rank(ascending=False))
print cik_df.head()

Here is the output: https://gist.github.com/MichaelWS/7991767

(I sent this to the pydata group but was asked to post it here by a more active contributor)

@MichaelWS
Copy link
Contributor Author

Thanks

@jreback
Copy link
Contributor

jreback commented Dec 16, 2013

@MichaelWS ok...in master...pls give a test if you would

@MichaelWS
Copy link
Contributor Author

Thank you for the quick fix. all my tests work.

@jreback
Copy link
Contributor

jreback commented Dec 16, 2013

gr8!

posting an issue here is likely to get more attention IMHO than the mailing list (because it sort of sticks around)...and IMHO conversation are MUCH easier (as is formatting)

my 2c

@MichaelWS
Copy link
Contributor Author

Yes, I definitely agree and appreciate it.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Groupby Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants