Skip to content

Commit 7bad3b9

Browse files
author
austinc
committed
fix test
1 parent 5f5927f commit 7bad3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tseries/frequencies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ def _get_wom_rule(self):
927927

928928
week_of_months = unique((self.index.day - 1) // 7)
929929
week_of_months = week_of_months[week_of_months < 4]
930-
if len(week_of_months) > 1:
930+
if len(week_of_months) == 0 or len(week_of_months) > 1:
931931
return None
932932

933933
# get which week

0 commit comments

Comments
 (0)