Skip to content
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

groupby.transform failing in 0.13 #5712

Closed
MichaelWS opened this issue Dec 16, 2013 · 5 comments · Fixed by #5713

Comments

@MichaelWS
Copy link
Contributor

commented Dec 16, 2013

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

This comment has been minimized.

Copy link
Contributor Author

commented Dec 16, 2013

Thanks

@jreback

This comment has been minimized.

Copy link
Contributor

commented Dec 16, 2013

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

@MichaelWS

This comment has been minimized.

Copy link
Contributor Author

commented Dec 16, 2013

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

@jreback

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor Author

commented Dec 16, 2013

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
Projects
None yet
2 participants
You can’t perform that action at this time.