Skip to content

Commit a082e1d

Browse files
committed
update comments for _adjust_binner_for_upsample
1 parent 4799022 commit a082e1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/resample.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,10 @@ def _downsample(self, how, **kwargs):
962962
return self._wrap_result(result)
963963

964964
def _adjust_binner_for_upsample(self, binner):
965-
""" adjust our binner when upsampling """
965+
"""
966+
Adjust our binner when upsampling.
967+
The range of a new index should not be outside specified range
968+
"""
966969
if self.closed == 'right':
967970
binner = binner[1:]
968971
else:
@@ -1156,6 +1159,7 @@ def _get_binner_for_time(self):
11561159

11571160
def _adjust_binner_for_upsample(self, binner):
11581161
""" adjust our binner when upsampling """
1162+
# Just returning binner directly, GH 13022
11591163
return binner
11601164

11611165

0 commit comments

Comments
 (0)