8000 BUG: Fix a bug in 'timedelta_range' that produced an extra point on a edge case (fix #30353) by hasB4K · Pull Request #33498 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix a bug in 'timedelta_range' that produced an extra point on a edge case (fix #30353) #33498

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

Merged
merged 17 commits into from
May 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CLN: add GH related issue
  • Loading branch information
hasB4K committed May 9, 2020
commit 2469986fab224c633bea464ac615c97575444926
3 changes: 2 additions & 1 deletion pandas/core/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,10 +1499,11 @@ def _get_time_delta_bins(self, ax):
end_stamps = labels + self.freq
bins = ax.searchsorted(end_stamps, side="left")

# Addresses GH #10530
if self.base > 0:
# GH #10530
labels += type(self.freq)(self.base)
if self.loffset:
# GH #33498
labels += self.loffset

return binner, bins, labels
Expand Down
0