DEPR: the method is_anchored() for offsets by natmokval · Pull Request #56594 · pandas-dev/pandas (original) (raw)

In [12]: FY5253(n=1, weekday=1, startingMonth=1).is_anchored() :1: FutureWarning: FY5253.is_anchored is deprecated and will be removed in a future version, please use 'obj.n == 1' instead. FY5253(n=1, weekday=1, startingMonth=1).is_anchored() Out[12]: True

In [13]: FY5253(n=1, weekday=None, startingMonth=None).is_anchored()

TypeError Traceback (most recent call last) Cell In[13], line 1 ----> 1 FY5253(n=1, weekday=None, startingMonth=None).is_anchored()

File offsets.pyx:3627, in pandas._libs.tslibs.offsets.FY5253Mixin.init()

TypeError: an integer is required

In [14]: FY5253(n=1, weekday=None, startingMonth=1).is_anchored()

TypeError Traceback (most recent call last) Cell In[14], line 1 ----> 1 FY5253(n=1, weekday=None, startingMonth=1).is_anchored()

File offsets.pyx:3628, in pandas._libs.tslibs.offsets.FY5253Mixin.init()

TypeError: an integer is required

In [15]: FY5253(n=1, weekday=1, startingMonth=None).is_anchored()

TypeError Traceback (most recent call last) Cell In[15], line 1 ----> 1 FY5253(n=1, weekday=1, startingMonth=None).is_anchored()

File offsets.pyx:3627, in pandas._libs.tslibs.offsets.FY5253Mixin.init()

TypeError: an integer is required