We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7953f2 commit 8b1b312Copy full SHA for 8b1b312
pandas/_libs/tslibs/offsets.pyx
@@ -4554,9 +4554,10 @@ cdef class Easter(SingleConstructorOffset):
4554
raise ValueError(f"Method must be 1<=method<=3, got {method}")
4555
4556
cpdef __setstate__(self, state):
4557
+ from dateutil.easter import EASTER_WESTERN
4558
self.n = state.pop("n")
4559
self.normalize = state.pop("normalize")
- self.method = state.pop("method")
4560
+ self.method = state.pop("method", EASTER_WESTERN)
4561
4562
@apply_wraps
4563
def _apply(self, other: datetime) -> datetime:
0 commit comments