We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ef79cc commit 15d4e9aCopy full SHA for 15d4e9a
pandas/core/resample.py
@@ -1220,6 +1220,7 @@ def _get_period_bins(self, ax):
1220
'an instance of %r' % type(ax).__name__)
1221
1222
memb = ax.asfreq(self.freq, how=self.convention)
1223
+
1224
# NaT handling as in pandas._lib.lib.generate_bins_dt64()
1225
nat_count = 0
1226
if memb.hasnans:
@@ -1240,6 +1241,7 @@ def _get_period_bins(self, ax):
1240
1241
1242
i8 = memb.asi8
1243
freq_mult = self.freq.n
1244
1245
# when upsampling to subperiods, we need to generate enough bins
1246
expected_bins_count = len(binner) * freq_mult
1247
i8_extend = expected_bins_count - (i8[-1] - i8[0])
0 commit comments