-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG/ENH: groupby with a list of customgroup and string should work #3794
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
@jreback forgive me for not reading the threads, but why not just do a resample then groupby buyer? |
because you don't want to actually resample (and reduce the time groups), rather you really want a grouping by time, then a sub-grouping by the and end up with a multi-level index |
you CAN do it with a nested how function (or actually that might be a bug too) |
ah i c. duh. |
i think what i was thinking of is |
that doesn't work because the string columns are not propogated (I think if you did a custom how instead of sum you could make it work though) |
i haven't really thought about the formalisms behind groupby but are reductions supposed to distribute across them in general, i.e., |
if |
|
ah ok. thanks. |
|
@hayd maybe make a sep issue and link to this one FYI the so question this came from (using timegrouper and between time) |
see #3791, #2450
The following should work (but raises now)
The text was updated successfully, but these errors were encountered: