Skip to content

Add option for label shift in resample #1127

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

Closed
wesm opened this issue Apr 24, 2012 · 0 comments
Closed

Add option for label shift in resample #1127

wesm opened this issue Apr 24, 2012 · 0 comments
Labels
Datetime Datetime data dtype Enhancement
Milestone

Comments

@wesm
Copy link
Member

wesm commented Apr 24, 2012

Suppose we're doing 5 minute data and want to get 9:34:59 instead of 9:35:00 for the resampled labels. want to do like:

ts.resample('5min', closed='left', label='right', loffset=timedelta(seconds=-1))

Straightforward to convert the timedelta into microseconds and adjust the datetime64 values

@wesm wesm closed this as completed in 87bffb3 Apr 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant