-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
API/ENH: master issue for pd.rolling_apply #8659
Comments
rankdata is being passed a scalar (the result of the mean). The input is only 1-d, NOT 2-d whenever I have something like this I create a function and step thru |
Thanks. With pdb, the pd.rolling_apply works in this way: i) it works column by column in order ii) on each column, it splits this long 1-D array into small array with size What I had in mind is that pd.rolling_apply splits the 2-D array into chunks along axis=0 and apply the function to the small 2-D array. For this specific question, the workaround is: pd.rolling_apply(df, 2, bn.nanmean).rank(axis=1) But is the 2-D to 2-D rolling feature not desirable? |
you can just do yes, I don't think this case is 'handled per se'. But this is really a rolling-grid type of things yes? It is implemented column by column for simplicity ATM (and uses a couple of open issues w.r.t. so yes I would agree that is needed. like to work on it? cc @seth-p whom has done quite a bit of work on fixing some of these as well |
What is the status of this issue? |
its just tracking many open issues here |
I don't think we need this high level tracking issue. There are not too many windowing issues and most are enhancement requests for other non apply methods. Closing. |
Catchall for
rolling_*
issues:rolling_apply
)np.apply_along_axis
)rolling_quantile
rolling_idxmax
.apply
Rolling
object), API: provide Rolling/Expanding/EWM objects for deferred rolling type calculations #10702 #11603Hi all,
I intended to apply a function that gives on each day a ranking based on means calculated from previous n-day's data. The natural way is to use pd.rolling_apply. A toy example:
Up to now, it is cool. Then:
This is clearly wrong. Is this a bug?
The text was updated successfully, but these errors were encountered: