Skip to content

Commit a40ceb8

Browse files
committed
BUG: add support of loffset for timedelta
1 parent 9f746a7 commit a40ceb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/resample.py

+2
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,8 @@ def _get_time_delta_bins(self, ax):
15021502
# Addresses GH #10530
15031503
if self.base > 0:
15041504
labels += type(self.freq)(self.base)
1505+
if self.loffset:
1506+
labels += self.loffset
15051507

15061508
return binner, bins, labels
15071509

0 commit comments

Comments
 (0)