Skip to content

Commit c9bcbac

Browse files
committed
Removed the WeekOfMonth n assert (#20549)
1 parent c4b4a81 commit c9bcbac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pandas/tseries/offsets.py

-3
Original file line numberDiff line numberDiff line change
@@ -1461,9 +1461,6 @@ def __init__(self, n=1, normalize=False, week=0, weekday=0):
14611461
self.weekday = weekday
14621462
self.week = week
14631463

1464-
if self.n == 0:
1465-
raise ValueError('N cannot be 0')
1466-
14671464
if self.weekday < 0 or self.weekday > 6:
14681465
raise ValueError('Day must be 0<=day<=6, got {day}'
14691466
.format(day=self.weekday))

0 commit comments

Comments
 (0)