Skip to content

Commit b526c85

Browse files
committed
BUG: fixed +=/=+ error
1 parent 4b41426 commit b526c85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/datetools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ class MonthBegin(DateOffset, CacheableOffset):
392392
def apply(self, other):
393393
n = self.n
394394

395-
if other.day > 1 and n<=0: #then roll forward if n<=0
396-
n =+ 1
395+
if other.day > 1 and n <= 0: #then roll forward if n<=0
396+
n += 1
397397

398398
other = other + lib.Delta(months=n, day=1)
399399
return other

0 commit comments

Comments
 (0)