-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: make sure that we are passing thru kwargs to groupby #15054
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
Conversation
Current coverage is 84.73% (diff: 64.61%)@@ master #15054 diff @@
==========================================
Files 145 145
Lines 51232 51270 +38
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 43420 43445 +25
- Misses 7812 7825 +13
Partials 0 0
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also explicitly test that groupby().mean() now works on a timedelta column? (as I understand this was also what was reported in the issue)
# categoricals are only 1d, so we | ||
# are not setup for dim transforming | ||
if is_categorical_dtype(values): | ||
raise NotImplementedError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the coverage report, this error is never reached. Is it needed for the categorical you added in the test?
045bcb5
to
75fc113
Compare
so finally fixed this. was a PITA! passing |
BUG: allow timedelta64 to work in groupby with numeric_only=False closes pandas-dev#5724
BUG: allow timedelta64 to work in groupby with numeric_only=False closes pandas-dev#5724 Author: Jeff Reback <[email protected]> Closes pandas-dev#15054 from jreback/groupby_arg and squashes the following commits: 768fce1 [Jeff Reback] BUG: make sure that we are passing thru kwargs to groupby BUG: allow timedelta64 to work in groupby with numeric_only=False
BUG: allow timedelta64 to work in groupby with numeric_only=False
closes #5724