-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Multi-column grouping (e.g. OHLC) for DataFrame #2320
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
Apparently the reason why 'ohlc' does not work for DataFrame.resample is that it only can create new column names |
So lazy implementation of this is just:
Not sure where to put that... |
I think their is an issue about this already (can't find ATM) |
@jreback not sure if this should go in groupby's ohlc function, if so was wondering if you know a way to iterate through columns SeriesGroupbys:
(Basically an iloc for DataFrameGroupbys) could use column comes via self.obj.columns but that would fail for dupe names. :( |
|
Hmmm, not sure there is I created _iterate_column_groupbys to iterate with (name, SeriesGroupby). Then this drops out easy. Quite a few methods are broken for certain groupbys, have created issue before about it. Also, resample doesn't work with dupe columns atm anyway. Maybe this method will help, atm seem to always be accessed via name (as no other choice). |
This currently only works for single time series
The text was updated successfully, but these errors were encountered: