Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEPR: remove deprecated method is_anchored #57473

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions doc/source/reference/offset_frequency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Methods
:toctree: api/

DateOffset.copy
DateOffset.is_anchored
DateOffset.is_on_offset
DateOffset.is_month_start
DateOffset.is_month_end
Expand Down Expand Up @@ -82,7 +81,6 @@ Methods
:toctree: api/

BusinessDay.copy
BusinessDay.is_anchored
BusinessDay.is_on_offset
BusinessDay.is_month_start
BusinessDay.is_month_end
Expand Down Expand Up @@ -122,7 +120,6 @@ Methods
:toctree: api/

BusinessHour.copy
BusinessHour.is_anchored
BusinessHour.is_on_offset
BusinessHour.is_month_start
BusinessHour.is_month_end
Expand Down Expand Up @@ -169,7 +166,6 @@ Methods
:toctree: api/

CustomBusinessDay.copy
CustomBusinessDay.is_anchored
CustomBusinessDay.is_on_offset
CustomBusinessDay.is_month_start
CustomBusinessDay.is_month_end
Expand Down Expand Up @@ -209,7 +205,6 @@ Methods
:toctree: api/

CustomBusinessHour.copy
CustomBusinessHour.is_anchored
CustomBusinessHour.is_on_offset
CustomBusinessHour.is_month_start
CustomBusinessHour.is_month_end
Expand Down Expand Up @@ -244,7 +239,6 @@ Methods
:toctree: api/

MonthEnd.copy
MonthEnd.is_anchored
MonthEnd.is_on_offset
MonthEnd.is_month_start
MonthEnd.is_month_end
Expand Down Expand Up @@ -279,7 +273,6 @@ Methods
:toctree: api/

MonthBegin.copy
MonthBegin.is_anchored
MonthBegin.is_on_offset
MonthBegin.is_month_start
MonthBegin.is_month_end
Expand Down Expand Up @@ -323,7 +316,6 @@ Methods
:toctree: api/

BusinessMonthEnd.copy
BusinessMonthEnd.is_anchored
BusinessMonthEnd.is_on_offset
BusinessMonthEnd.is_month_start
BusinessMonthEnd.is_month_end
Expand Down Expand Up @@ -367,7 +359,6 @@ Methods
:toctree: api/

BusinessMonthBegin.copy
BusinessMonthBegin.is_anchored
BusinessMonthBegin.is_on_offset
BusinessMonthBegin.is_month_start
BusinessMonthBegin.is_month_end
Expand Down Expand Up @@ -415,7 +406,6 @@ Methods
:toctree: api/

CustomBusinessMonthEnd.copy
CustomBusinessMonthEnd.is_anchored
CustomBusinessMonthEnd.is_on_offset
CustomBusinessMonthEnd.is_month_start
CustomBusinessMonthEnd.is_month_end
Expand Down Expand Up @@ -463,7 +453,6 @@ Methods
:toctree: api/

CustomBusinessMonthBegin.copy
CustomBusinessMonthBegin.is_anchored
CustomBusinessMonthBegin.is_on_offset
CustomBusinessMonthBegin.is_month_start
CustomBusinessMonthBegin.is_month_end
Expand Down Expand Up @@ -499,7 +488,6 @@ Methods
:toctree: api/

SemiMonthEnd.copy
SemiMonthEnd.is_anchored
SemiMonthEnd.is_on_offset
SemiMonthEnd.is_month_start
SemiMonthEnd.is_month_end
Expand Down Expand Up @@ -535,7 +523,6 @@ Methods
:toctree: api/

SemiMonthBegin.copy
SemiMonthBegin.is_anchored
SemiMonthBegin.is_on_offset
SemiMonthBegin.is_month_start
SemiMonthBegin.is_month_end
Expand Down Expand Up @@ -571,7 +558,6 @@ Methods
:toctree: api/

Week.copy
Week.is_anchored
Week.is_on_offset
Week.is_month_start
Week.is_month_end
Expand Down Expand Up @@ -607,7 +593,6 @@ Methods
:toctree: api/

WeekOfMonth.copy
WeekOfMonth.is_anchored
WeekOfMonth.is_on_offset
WeekOfMonth.weekday
WeekOfMonth.is_month_start
Expand Down Expand Up @@ -645,7 +630,6 @@ Methods
:toctree: api/

LastWeekOfMonth.copy
LastWeekOfMonth.is_anchored
LastWeekOfMonth.is_on_offset
LastWeekOfMonth.is_month_start
LastWeekOfMonth.is_month_end
Expand Down Expand Up @@ -681,7 +665,6 @@ Methods
:toctree: api/

BQuarterEnd.copy
BQuarterEnd.is_anchored
BQuarterEnd.is_on_offset
BQuarterEnd.is_month_start
BQuarterEnd.is_month_end
Expand Down Expand Up @@ -717,7 +700,6 @@ Methods
:toctree: api/

BQuarterBegin.copy
BQuarterBegin.is_anchored
BQuarterBegin.is_on_offset
BQuarterBegin.is_month_start
BQuarterBegin.is_month_end
Expand Down Expand Up @@ -753,7 +735,6 @@ Methods
:toctree: api/

QuarterEnd.copy
QuarterEnd.is_anchored
QuarterEnd.is_on_offset
QuarterEnd.is_month_start
QuarterEnd.is_month_end
Expand Down Expand Up @@ -789,7 +770,6 @@ Methods
:toctree: api/

QuarterBegin.copy
QuarterBegin.is_anchored
QuarterBegin.is_on_offset
QuarterBegin.is_month_start
QuarterBegin.is_month_end
Expand Down Expand Up @@ -825,7 +805,6 @@ Methods
:toctree: api/

BYearEnd.copy
BYearEnd.is_anchored
BYearEnd.is_on_offset
BYearEnd.is_month_start
BYearEnd.is_month_end
Expand Down Expand Up @@ -861,7 +840,6 @@ Methods
:toctree: api/

BYearBegin.copy
BYearBegin.is_anchored
BYearBegin.is_on_offset
BYearBegin.is_month_start
BYearBegin.is_month_end
Expand Down Expand Up @@ -897,7 +875,6 @@ Methods
:toctree: api/

YearEnd.copy
YearEnd.is_anchored
YearEnd.is_on_offset
YearEnd.is_month_start
YearEnd.is_month_end
Expand Down Expand Up @@ -933,7 +910,6 @@ Methods
:toctree: api/

YearBegin.copy
YearBegin.is_anchored
YearBegin.is_on_offset
YearBegin.is_month_start
YearBegin.is_month_end
Expand Down Expand Up @@ -973,7 +949,6 @@ Methods
FY5253.copy
FY5253.get_rule_code_suffix
FY5253.get_year_end
FY5253.is_anchored
FY5253.is_on_offset
FY5253.is_month_start
FY5253.is_month_end
Expand Down Expand Up @@ -1014,7 +989,6 @@ Methods
FY5253Quarter.copy
FY5253Quarter.get_rule_code_suffix
FY5253Quarter.get_weeks
FY5253Quarter.is_anchored
FY5253Quarter.is_on_offset
FY5253Quarter.year_has_extra_week
FY5253Quarter.is_month_start
Expand Down Expand Up @@ -1050,7 +1024,6 @@ Methods
:toctree: api/

Easter.copy
Easter.is_anchored
Easter.is_on_offset
Easter.is_month_start
Easter.is_month_end
Expand Down Expand Up @@ -1086,7 +1059,6 @@ Methods
:toctree: api/

Tick.copy
Tick.is_anchored
Tick.is_on_offset
Tick.is_month_start
Tick.is_month_end
Expand Down Expand Up @@ -1122,7 +1094,6 @@ Methods
:toctree: api/

Day.copy
Day.is_anchored
Day.is_on_offset
Day.is_month_start
Day.is_month_end
Expand Down Expand Up @@ -1158,7 +1129,6 @@ Methods
:toctree: api/

Hour.copy
Hour.is_anchored
Hour.is_on_offset
Hour.is_month_start
Hour.is_month_end
Expand Down Expand Up @@ -1194,7 +1164,6 @@ Methods
:toctree: api/

Minute.copy
Minute.is_anchored
Minute.is_on_offset
Minute.is_month_start
Minute.is_month_end
Expand Down Expand Up @@ -1230,7 +1199,6 @@ Methods
:toctree: api/

Second.copy
Second.is_anchored
Second.is_on_offset
Second.is_month_start
Second.is_month_end
Expand Down Expand Up @@ -1266,7 +1234,6 @@ Methods
:toctree: api/

Milli.copy
Milli.is_anchored
Milli.is_on_offset
Milli.is_month_start
Milli.is_month_end
Expand Down Expand Up @@ -1302,7 +1269,6 @@ Methods
:toctree: api/

Micro.copy
Micro.is_anchored
Micro.is_on_offset
Micro.is_month_start
Micro.is_month_end
Expand Down Expand Up @@ -1338,7 +1304,6 @@ Methods
:toctree: api/

Nano.copy
Nano.is_anchored
Nano.is_on_offset
Nano.is_month_start
Nano.is_month_end
Expand Down
1 change: 1 addition & 0 deletions doc/source/whatsnew/v3.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Removal of prior version deprecations/changes
- Changed the default value of ``observed`` in :meth:`DataFrame.groupby` and :meth:`Series.groupby` to ``True`` (:issue:`51811`)
- Enforced silent-downcasting deprecation for :ref:`all relevant methods <whatsnew_220.silent_downcasting>` (:issue:`54710`)
- In :meth:`DataFrame.stack`, the default value of ``future_stack`` is now ``True``; specifying ``False`` will raise a ``FutureWarning`` (:issue:`55448`)
- Removed :meth:`DateOffset.is_anchored` and :meth:`offsets.Tick.is_anchored` (:issue:`56594`)
- Removed ``DataFrame.applymap``, ``Styler.applymap`` and ``Styler.applymap_index`` (:issue:`52364`)
- Removed ``DataFrame.bool`` and ``Series.bool`` (:issue:`51756`)
- Removed ``DataFrame.first`` and ``DataFrame.last`` (:issue:`53710`)
Expand Down
1 change: 0 additions & 1 deletion pandas/_libs/tslibs/offsets.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class BaseOffset:
def __getstate__(self): ...
@property
def nanos(self) -> int: ...
def is_anchored(self) -> bool: ...

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

Expand Down
Loading
Loading