Skip to content

Commit e4d0796

Browse files
natmokvalpmhatre1
authored andcommitted
DEPR: remove deprecated method is_anchored (pandas-dev#57473)
1 parent a6ec4af commit e4d0796

File tree

10 files changed

+1
-189
lines changed

10 files changed

+1
-189
lines changed

doc/source/reference/offset_frequency.rst

-35
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Methods
3535
:toctree: api/
3636

3737
DateOffset.copy
38-
DateOffset.is_anchored
3938
DateOffset.is_on_offset
4039
DateOffset.is_month_start
4140
DateOffset.is_month_end
@@ -82,7 +81,6 @@ Methods
8281
:toctree: api/
8382

8483
BusinessDay.copy
85-
BusinessDay.is_anchored
8684
BusinessDay.is_on_offset
8785
BusinessDay.is_month_start
8886
BusinessDay.is_month_end
@@ -122,7 +120,6 @@ Methods
122120
:toctree: api/
123121

124122
BusinessHour.copy
125-
BusinessHour.is_anchored
126123
BusinessHour.is_on_offset
127124
BusinessHour.is_month_start
128125
BusinessHour.is_month_end
@@ -169,7 +166,6 @@ Methods
169166
:toctree: api/
170167

171168
CustomBusinessDay.copy
172-
CustomBusinessDay.is_anchored
173169
CustomBusinessDay.is_on_offset
174170
CustomBusinessDay.is_month_start
175171
CustomBusinessDay.is_month_end
@@ -209,7 +205,6 @@ Methods
209205
:toctree: api/
210206

211207
CustomBusinessHour.copy
212-
CustomBusinessHour.is_anchored
213208
CustomBusinessHour.is_on_offset
214209
CustomBusinessHour.is_month_start
215210
CustomBusinessHour.is_month_end
@@ -244,7 +239,6 @@ Methods
244239
:toctree: api/
245240

246241
MonthEnd.copy
247-
MonthEnd.is_anchored
248242
MonthEnd.is_on_offset
249243
MonthEnd.is_month_start
250244
MonthEnd.is_month_end
@@ -279,7 +273,6 @@ Methods
279273
:toctree: api/
280274

281275
MonthBegin.copy
282-
MonthBegin.is_anchored
283276
MonthBegin.is_on_offset
284277
MonthBegin.is_month_start
285278
MonthBegin.is_month_end
@@ -323,7 +316,6 @@ Methods
323316
:toctree: api/
324317

325318
BusinessMonthEnd.copy
326-
BusinessMonthEnd.is_anchored
327319
BusinessMonthEnd.is_on_offset
328320
BusinessMonthEnd.is_month_start
329321
BusinessMonthEnd.is_month_end
@@ -367,7 +359,6 @@ Methods
367359
:toctree: api/
368360

369361
BusinessMonthBegin.copy
370-
BusinessMonthBegin.is_anchored
371362
BusinessMonthBegin.is_on_offset
372363
BusinessMonthBegin.is_month_start
373364
BusinessMonthBegin.is_month_end
@@ -415,7 +406,6 @@ Methods
415406
:toctree: api/
416407

417408
CustomBusinessMonthEnd.copy
418-
CustomBusinessMonthEnd.is_anchored
419409
CustomBusinessMonthEnd.is_on_offset
420410
CustomBusinessMonthEnd.is_month_start
421411
CustomBusinessMonthEnd.is_month_end
@@ -463,7 +453,6 @@ Methods
463453
:toctree: api/
464454

465455
CustomBusinessMonthBegin.copy
466-
CustomBusinessMonthBegin.is_anchored
467456
CustomBusinessMonthBegin.is_on_offset
468457
CustomBusinessMonthBegin.is_month_start
469458
CustomBusinessMonthBegin.is_month_end
@@ -499,7 +488,6 @@ Methods
499488
:toctree: api/
500489

501490
SemiMonthEnd.copy
502-
SemiMonthEnd.is_anchored
503491
SemiMonthEnd.is_on_offset
504492
SemiMonthEnd.is_month_start
505493
SemiMonthEnd.is_month_end
@@ -535,7 +523,6 @@ Methods
535523
:toctree: api/
536524

537525
SemiMonthBegin.copy
538-
SemiMonthBegin.is_anchored
539526
SemiMonthBegin.is_on_offset
540527
SemiMonthBegin.is_month_start
541528
SemiMonthBegin.is_month_end
@@ -571,7 +558,6 @@ Methods
571558
:toctree: api/
572559

573560
Week.copy
574-
Week.is_anchored
575561
Week.is_on_offset
576562
Week.is_month_start
577563
Week.is_month_end
@@ -607,7 +593,6 @@ Methods
607593
:toctree: api/
608594

609595
WeekOfMonth.copy
610-
WeekOfMonth.is_anchored
611596
WeekOfMonth.is_on_offset
612597
WeekOfMonth.weekday
613598
WeekOfMonth.is_month_start
@@ -645,7 +630,6 @@ Methods
645630
:toctree: api/
646631

647632
LastWeekOfMonth.copy
648-
LastWeekOfMonth.is_anchored
649633
LastWeekOfMonth.is_on_offset
650634
LastWeekOfMonth.is_month_start
651635
LastWeekOfMonth.is_month_end
@@ -681,7 +665,6 @@ Methods
681665
:toctree: api/
682666

683667
BQuarterEnd.copy
684-
BQuarterEnd.is_anchored
685668
BQuarterEnd.is_on_offset
686669
BQuarterEnd.is_month_start
687670
BQuarterEnd.is_month_end
@@ -717,7 +700,6 @@ Methods
717700
:toctree: api/
718701

719702
BQuarterBegin.copy
720-
BQuarterBegin.is_anchored
721703
BQuarterBegin.is_on_offset
722704
BQuarterBegin.is_month_start
723705
BQuarterBegin.is_month_end
@@ -753,7 +735,6 @@ Methods
753735
:toctree: api/
754736

755737
QuarterEnd.copy
756-
QuarterEnd.is_anchored
757738
QuarterEnd.is_on_offset
758739
QuarterEnd.is_month_start
759740
QuarterEnd.is_month_end
@@ -789,7 +770,6 @@ Methods
789770
:toctree: api/
790771

791772
QuarterBegin.copy
792-
QuarterBegin.is_anchored
793773
QuarterBegin.is_on_offset
794774
QuarterBegin.is_month_start
795775
QuarterBegin.is_month_end
@@ -825,7 +805,6 @@ Methods
825805
:toctree: api/
826806

827807
BYearEnd.copy
828-
BYearEnd.is_anchored
829808
BYearEnd.is_on_offset
830809
BYearEnd.is_month_start
831810
BYearEnd.is_month_end
@@ -861,7 +840,6 @@ Methods
861840
:toctree: api/
862841

863842
BYearBegin.copy
864-
BYearBegin.is_anchored
865843
BYearBegin.is_on_offset
866844
BYearBegin.is_month_start
867845
BYearBegin.is_month_end
@@ -897,7 +875,6 @@ Methods
897875
:toctree: api/
898876

899877
YearEnd.copy
900-
YearEnd.is_anchored
901878
YearEnd.is_on_offset
902879
YearEnd.is_month_start
903880
YearEnd.is_month_end
@@ -933,7 +910,6 @@ Methods
933910
:toctree: api/
934911

935912
YearBegin.copy
936-
YearBegin.is_anchored
937913
YearBegin.is_on_offset
938914
YearBegin.is_month_start
939915
YearBegin.is_month_end
@@ -973,7 +949,6 @@ Methods
973949
FY5253.copy
974950
FY5253.get_rule_code_suffix
975951
FY5253.get_year_end
976-
FY5253.is_anchored
977952
FY5253.is_on_offset
978953
FY5253.is_month_start
979954
FY5253.is_month_end
@@ -1014,7 +989,6 @@ Methods
1014989
FY5253Quarter.copy
1015990
FY5253Quarter.get_rule_code_suffix
1016991
FY5253Quarter.get_weeks
1017-
FY5253Quarter.is_anchored
1018992
FY5253Quarter.is_on_offset
1019993
FY5253Quarter.year_has_extra_week
1020994
FY5253Quarter.is_month_start
@@ -1050,7 +1024,6 @@ Methods
10501024
:toctree: api/
10511025

10521026
Easter.copy
1053-
Easter.is_anchored
10541027
Easter.is_on_offset
10551028
Easter.is_month_start
10561029
Easter.is_month_end
@@ -1086,7 +1059,6 @@ Methods
10861059
:toctree: api/
10871060

10881061
Tick.copy
1089-
Tick.is_anchored
10901062
Tick.is_on_offset
10911063
Tick.is_month_start
10921064
Tick.is_month_end
@@ -1122,7 +1094,6 @@ Methods
11221094
:toctree: api/
11231095

11241096
Day.copy
1125-
Day.is_anchored
11261097
Day.is_on_offset
11271098
Day.is_month_start
11281099
Day.is_month_end
@@ -1158,7 +1129,6 @@ Methods
11581129
:toctree: api/
11591130

11601131
Hour.copy
1161-
Hour.is_anchored
11621132
Hour.is_on_offset
11631133
Hour.is_month_start
11641134
Hour.is_month_end
@@ -1194,7 +1164,6 @@ Methods
11941164
:toctree: api/
11951165

11961166
Minute.copy
1197-
Minute.is_anchored
11981167
Minute.is_on_offset
11991168
Minute.is_month_start
12001169
Minute.is_month_end
@@ -1230,7 +1199,6 @@ Methods
12301199
:toctree: api/
12311200

12321201
Second.copy
1233-
Second.is_anchored
12341202
Second.is_on_offset
12351203
Second.is_month_start
12361204
Second.is_month_end
@@ -1266,7 +1234,6 @@ Methods
12661234
:toctree: api/
12671235

12681236
Milli.copy
1269-
Milli.is_anchored
12701237
Milli.is_on_offset
12711238
Milli.is_month_start
12721239
Milli.is_month_end
@@ -1302,7 +1269,6 @@ Methods
13021269
:toctree: api/
13031270

13041271
Micro.copy
1305-
Micro.is_anchored
13061272
Micro.is_on_offset
13071273
Micro.is_month_start
13081274
Micro.is_month_end
@@ -1338,7 +1304,6 @@ Methods
13381304
:toctree: api/
13391305

13401306
Nano.copy
1341-
Nano.is_anchored
13421307
Nano.is_on_offset
13431308
Nano.is_month_start
13441309
Nano.is_month_end

doc/source/whatsnew/v3.0.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Removal of prior version deprecations/changes
119119
- Changed the default value of ``observed`` in :meth:`DataFrame.groupby` and :meth:`Series.groupby` to ``True`` (:issue:`51811`)
120120
- Enforced silent-downcasting deprecation for :ref:`all relevant methods <whatsnew_220.silent_downcasting>` (:issue:`54710`)
121121
- In :meth:`DataFrame.stack`, the default value of ``future_stack`` is now ``True``; specifying ``False`` will raise a ``FutureWarning`` (:issue:`55448`)
122+
- Removed :meth:`DateOffset.is_anchored` and :meth:`offsets.Tick.is_anchored` (:issue:`56594`)
122123
- Removed ``DataFrame.applymap``, ``Styler.applymap`` and ``Styler.applymap_index`` (:issue:`52364`)
123124
- Removed ``DataFrame.bool`` and ``Series.bool`` (:issue:`51756`)
124125
- Removed ``DataFrame.first`` and ``DataFrame.last`` (:issue:`53710`)

pandas/_libs/tslibs/offsets.pyi

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class BaseOffset:
9494
def __getstate__(self): ...
9595
@property
9696
def nanos(self) -> int: ...
97-
def is_anchored(self) -> bool: ...
9897

9998
def _get_offset(name: str) -> BaseOffset: ...
10099

0 commit comments

Comments
 (0)