-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: groupby by indexer to 'resample' data #13271
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
You mean like this?
|
So'll rerpupose this to be a doc issue, if you'd like to add an example to: http://pandas.pydata.org/pandas-docs/stable/groupby.html#examples |
Yes, that is exactly what I meant! Nobody in SO that saw the question (including me) could come up with that. I'm new to github, but I'll look up how to contribute and I'll probably write an example of that. Thanks a lot. |
contributing docs are here thanks! |
@jreback Hi, I was working on this and have implemented the requirement. However while doing so Followed by
Currently upon executing Thanks. |
just commit that single file |
Have added the example. Please take a look. |
Related to this question.
I would like to propose either to expand
.resample
to work on indexes that are integers or to create another method that does the same thing (maybe more general.upsample
and.downsample
methods).If it was implemented as an expansion of resample I imagine something like:
Which would produce:
which is a pretty forward downsample case. For upsampling maybe some discussion is needed on how to return the indexes.
This should be simple to program and I think it would be a very useful shortcut.
The text was updated successfully, but these errors were encountered: