-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Effecient resample/reindex by index #7267
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
so this is defacto doing this: Essentially you are grouping by a Categorical give then time
And if we had a properly constructed |
Series meant to be something like this:
But I got the idea, thanks. Anyway, I think it would extremely useful feature that would resample by index (with presence of 'closed', 'label' and 'how' arguments) using some high-level method. |
Here is the solution I came up with, based on your suggestion.
I think it's the same as |
Here is the idea. I have predefined index and I'm grouping by timestamps in it, aggregating preceding values of the interval:
I don't know how effecient this code, but I think it might be a very useful feature as long as "resample" accepts only offsets or deltas. And "reindex" method doesn't have 'how' argument.
The text was updated successfully, but these errors were encountered: