We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa6c1d3 commit 7ea04e9Copy full SHA for 7ea04e9
pandas/core/resample.py
@@ -1270,6 +1270,7 @@ def _get_period_bins(self, ax):
1270
'an instance of %r' % type(ax).__name__)
1271
1272
memb = ax.asfreq(self.freq, how=self.convention)
1273
+
1274
# NaT handling as in pandas._lib.lib.generate_bins_dt64()
1275
nat_count = 0
1276
if memb.hasnans:
@@ -1290,6 +1291,7 @@ def _get_period_bins(self, ax):
1290
1291
1292
i8 = memb.asi8
1293
freq_mult = self.freq.n
1294
1295
# when upsampling to subperiods, we need to generate enough bins
1296
expected_bins_count = len(binner) * freq_mult
1297
i8_extend = expected_bins_count - (i8[-1] - i8[0])
0 commit comments