-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
GroupBy.nth includes group key inconsistently #12839
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
Comments
this is fixed in #11039 (but it IS a change) |
also some related issues there #7569 |
Thx, haven't noticed. This is also related to #7453 (last |
We can enable |
This isn't fixed by #11039. Reopen. |
|
Call
|
@sinhrks ahh, so something is changing state. ok! |
On a related note, which version of
|
4 tasks
nateGeorge
pushed a commit
to nateGeorge/pandas
that referenced
this issue
Aug 15, 2016
closes pandas-dev#12839 Author: adneu <[email protected]> Closes pandas-dev#13316 from adneu/12839 and squashes the following commits: 16f5cd3 [adneu] Name change ac1851a [adneu] Added docstrings/comments, and new tests. 4d73cbf [adneu] Updated tests 9b75df4 [adneu] BUG: Groupby.nth includes group key inconsistently pandas-dev#12839
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code Sample, a copy-pastable example if possible
nth
doesn't inlcude group key as the same asfirst
andlast
.However, calling
head
makes the behavior change. Looks to be caused by_set_selection_from_grouper
caches its selection.Expected Output
always as below.
output of
pd.show_versions()
current master.
The text was updated successfully, but these errors were encountered: