Skip to content

Commit 874e5a3

Browse files
committed
Undid previous change to if statement
1 parent 4ccafbf commit 874e5a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tseries/resample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ def _resample_timestamps(self, kind=None):
325325

326326
min_base = (type(self.freq))(0)
327327
base_freq = (type(self.freq))(self.base)
328-
if (base_freq <= min_base) or (base_freq > self.freq):
329-
raise Exception("Value of self.base must be between 0 and {freq}, "
330-
"got {base} instead".format(freq=self.freq.n, base=self.base))
328+
if (base_freq < min_base) or (base_freq > self.freq):
329+
raise Exception("Value of base must be between 0 and {freq}, got "
330+
"{base} instead".format(freq=self.freq.n, base=self.base))
331331

332332
result.index = result.index.shift(self.base, type(self.freq)(1))
333333

0 commit comments

Comments
 (0)