Skip to content

Commit e79dac7

Browse files
committed
Updated _resample_timestamp function
1 parent 5945735 commit e79dac7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tseries/resample.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,12 @@ def _resample_timestamps(self, kind=None):
323323

324324
result.index = result.index + loffset
325325

326-
min_base = (type(self.freq))(0)
327326
base_freq = (type(self.freq))(self.base)
328-
if (base_freq < min_base) or (base_freq > self.freq):
327+
if (base_freq > self.freq):
329328
raise Exception("Value of base must be between 0 and {freq}, got "
330329
"{base} instead".format(freq=self.freq.n, base=self.base))
331330

332-
result.index = result.index.shift(self.base, freq = type(self.freq)(1))
331+
result.index = result.index.shift(self.base, type(self.freq)(1))
333332

334333
return result
335334

0 commit comments

Comments
 (0)