-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: add quantile method to resample #15023
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
BTW, using grouby this also works (and on
In general should maybe check whether there are also other methods not working on resample. |
yeah, we have specificially defined Resampler methods (as we do for groupby). |
I am taking it |
@jreback can you remember if there was a specific reason that |
IIRC, some methods (e.g. cython defined ones, and some others), are specifically defined in So in theory, we should evaluate these and define if appropriate (or possibly make a general method to make these definitions). |
Problem description
The
quantile
method is currently not supported onresample
. Whileresample(...).agg(lambda x: x.quantile(..))
works fine, it would be nice to add theresample(..).quantile(..)
shortcut.Code Sample
So it would be nice the following would give the same result:
The fact that this currently implicitly takes the mean before calculating the quantile (
ts.resample('W').mean().quantile(0.75)
) would make this change slightly API breaking.Using pandas master, 0.19.0+289.g1bf94c8
The text was updated successfully, but these errors were encountered: