From fcb34b4777d5099ff75a331a9dbc7285cdafb902 Mon Sep 17 00:00:00 2001 From: Brock Date: Mon, 31 May 2021 09:16:20 -0700 Subject: [PATCH] DOC: collect positional deprecations, remove duplicate DateOffset methods --- doc/source/reference/offset_frequency.rst | 510 ---------------------- doc/source/whatsnew/v1.3.0.rst | 36 +- 2 files changed, 21 insertions(+), 525 deletions(-) diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index e6271a7806706..5d3aa1dc80cae 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -62,13 +62,6 @@ Properties .. autosummary:: :toctree: api/ - BusinessDay.freqstr - BusinessDay.kwds - BusinessDay.name - BusinessDay.nanos - BusinessDay.normalize - BusinessDay.rule_code - BusinessDay.n BusinessDay.weekmask BusinessDay.holidays BusinessDay.calendar @@ -78,14 +71,6 @@ Methods .. autosummary:: :toctree: api/ - BusinessDay.apply - BusinessDay.apply_index - BusinessDay.copy - BusinessDay.isAnchored - BusinessDay.onOffset - BusinessDay.is_anchored - BusinessDay.is_on_offset - BusinessDay.__call__ BusinessHour ------------ @@ -99,13 +84,6 @@ Properties .. autosummary:: :toctree: api/ - BusinessHour.freqstr - BusinessHour.kwds - BusinessHour.name - BusinessHour.nanos - BusinessHour.normalize - BusinessHour.rule_code - BusinessHour.n BusinessHour.start BusinessHour.end BusinessHour.weekmask @@ -117,14 +95,6 @@ Methods .. autosummary:: :toctree: api/ - BusinessHour.apply - BusinessHour.apply_index - BusinessHour.copy - BusinessHour.isAnchored - BusinessHour.onOffset - BusinessHour.is_anchored - BusinessHour.is_on_offset - BusinessHour.__call__ CustomBusinessDay ----------------- @@ -147,13 +117,6 @@ Properties .. autosummary:: :toctree: api/ - CustomBusinessDay.freqstr - CustomBusinessDay.kwds - CustomBusinessDay.name - CustomBusinessDay.nanos - CustomBusinessDay.normalize - CustomBusinessDay.rule_code - CustomBusinessDay.n CustomBusinessDay.weekmask CustomBusinessDay.calendar CustomBusinessDay.holidays @@ -163,14 +126,6 @@ Methods .. autosummary:: :toctree: api/ - CustomBusinessDay.apply_index - CustomBusinessDay.apply - CustomBusinessDay.copy - CustomBusinessDay.isAnchored - CustomBusinessDay.onOffset - CustomBusinessDay.is_anchored - CustomBusinessDay.is_on_offset - CustomBusinessDay.__call__ CustomBusinessHour ------------------ @@ -184,13 +139,6 @@ Properties .. autosummary:: :toctree: api/ - CustomBusinessHour.freqstr - CustomBusinessHour.kwds - CustomBusinessHour.name - CustomBusinessHour.nanos - CustomBusinessHour.normalize - CustomBusinessHour.rule_code - CustomBusinessHour.n CustomBusinessHour.weekmask CustomBusinessHour.calendar CustomBusinessHour.holidays @@ -202,14 +150,6 @@ Methods .. autosummary:: :toctree: api/ - CustomBusinessHour.apply - CustomBusinessHour.apply_index - CustomBusinessHour.copy - CustomBusinessHour.isAnchored - CustomBusinessHour.onOffset - CustomBusinessHour.is_anchored - CustomBusinessHour.is_on_offset - CustomBusinessHour.__call__ MonthEnd -------- @@ -223,27 +163,12 @@ Properties .. autosummary:: :toctree: api/ - MonthEnd.freqstr - MonthEnd.kwds - MonthEnd.name - MonthEnd.nanos - MonthEnd.normalize - MonthEnd.rule_code - MonthEnd.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - MonthEnd.apply - MonthEnd.apply_index - MonthEnd.copy - MonthEnd.isAnchored - MonthEnd.onOffset - MonthEnd.is_anchored - MonthEnd.is_on_offset - MonthEnd.__call__ MonthBegin ---------- @@ -257,27 +182,12 @@ Properties .. autosummary:: :toctree: api/ - MonthBegin.freqstr - MonthBegin.kwds - MonthBegin.name - MonthBegin.nanos - MonthBegin.normalize - MonthBegin.rule_code - MonthBegin.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - MonthBegin.apply - MonthBegin.apply_index - MonthBegin.copy - MonthBegin.isAnchored - MonthBegin.onOffset - MonthBegin.is_anchored - MonthBegin.is_on_offset - MonthBegin.__call__ BusinessMonthEnd ---------------- @@ -300,27 +210,12 @@ Properties .. autosummary:: :toctree: api/ - BusinessMonthEnd.freqstr - BusinessMonthEnd.kwds - BusinessMonthEnd.name - BusinessMonthEnd.nanos - BusinessMonthEnd.normalize - BusinessMonthEnd.rule_code - BusinessMonthEnd.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - BusinessMonthEnd.apply - BusinessMonthEnd.apply_index - BusinessMonthEnd.copy - BusinessMonthEnd.isAnchored - BusinessMonthEnd.onOffset - BusinessMonthEnd.is_anchored - BusinessMonthEnd.is_on_offset - BusinessMonthEnd.__call__ BusinessMonthBegin ------------------ @@ -343,27 +238,12 @@ Properties .. autosummary:: :toctree: api/ - BusinessMonthBegin.freqstr - BusinessMonthBegin.kwds - BusinessMonthBegin.name - BusinessMonthBegin.nanos - BusinessMonthBegin.normalize - BusinessMonthBegin.rule_code - BusinessMonthBegin.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - BusinessMonthBegin.apply - BusinessMonthBegin.apply_index - BusinessMonthBegin.copy - BusinessMonthBegin.isAnchored - BusinessMonthBegin.onOffset - BusinessMonthBegin.is_anchored - BusinessMonthBegin.is_on_offset - BusinessMonthBegin.__call__ CustomBusinessMonthEnd ---------------------- @@ -386,14 +266,7 @@ Properties .. autosummary:: :toctree: api/ - CustomBusinessMonthEnd.freqstr - CustomBusinessMonthEnd.kwds CustomBusinessMonthEnd.m_offset - CustomBusinessMonthEnd.name - CustomBusinessMonthEnd.nanos - CustomBusinessMonthEnd.normalize - CustomBusinessMonthEnd.rule_code - CustomBusinessMonthEnd.n CustomBusinessMonthEnd.weekmask CustomBusinessMonthEnd.calendar CustomBusinessMonthEnd.holidays @@ -403,14 +276,6 @@ Methods .. autosummary:: :toctree: api/ - CustomBusinessMonthEnd.apply - CustomBusinessMonthEnd.apply_index - CustomBusinessMonthEnd.copy - CustomBusinessMonthEnd.isAnchored - CustomBusinessMonthEnd.onOffset - CustomBusinessMonthEnd.is_anchored - CustomBusinessMonthEnd.is_on_offset - CustomBusinessMonthEnd.__call__ CustomBusinessMonthBegin ------------------------ @@ -433,14 +298,7 @@ Properties .. autosummary:: :toctree: api/ - CustomBusinessMonthBegin.freqstr - CustomBusinessMonthBegin.kwds CustomBusinessMonthBegin.m_offset - CustomBusinessMonthBegin.name - CustomBusinessMonthBegin.nanos - CustomBusinessMonthBegin.normalize - CustomBusinessMonthBegin.rule_code - CustomBusinessMonthBegin.n CustomBusinessMonthBegin.weekmask CustomBusinessMonthBegin.calendar CustomBusinessMonthBegin.holidays @@ -450,14 +308,6 @@ Methods .. autosummary:: :toctree: api/ - CustomBusinessMonthBegin.apply - CustomBusinessMonthBegin.apply_index - CustomBusinessMonthBegin.copy - CustomBusinessMonthBegin.isAnchored - CustomBusinessMonthBegin.onOffset - CustomBusinessMonthBegin.is_anchored - CustomBusinessMonthBegin.is_on_offset - CustomBusinessMonthBegin.__call__ SemiMonthEnd ------------ @@ -471,13 +321,6 @@ Properties .. autosummary:: :toctree: api/ - SemiMonthEnd.freqstr - SemiMonthEnd.kwds - SemiMonthEnd.name - SemiMonthEnd.nanos - SemiMonthEnd.normalize - SemiMonthEnd.rule_code - SemiMonthEnd.n SemiMonthEnd.day_of_month Methods @@ -485,14 +328,6 @@ Methods .. autosummary:: :toctree: api/ - SemiMonthEnd.apply - SemiMonthEnd.apply_index - SemiMonthEnd.copy - SemiMonthEnd.isAnchored - SemiMonthEnd.onOffset - SemiMonthEnd.is_anchored - SemiMonthEnd.is_on_offset - SemiMonthEnd.__call__ SemiMonthBegin -------------- @@ -506,13 +341,6 @@ Properties .. autosummary:: :toctree: api/ - SemiMonthBegin.freqstr - SemiMonthBegin.kwds - SemiMonthBegin.name - SemiMonthBegin.nanos - SemiMonthBegin.normalize - SemiMonthBegin.rule_code - SemiMonthBegin.n SemiMonthBegin.day_of_month Methods @@ -520,14 +348,6 @@ Methods .. autosummary:: :toctree: api/ - SemiMonthBegin.apply - SemiMonthBegin.apply_index - SemiMonthBegin.copy - SemiMonthBegin.isAnchored - SemiMonthBegin.onOffset - SemiMonthBegin.is_anchored - SemiMonthBegin.is_on_offset - SemiMonthBegin.__call__ Week ---- @@ -541,13 +361,6 @@ Properties .. autosummary:: :toctree: api/ - Week.freqstr - Week.kwds - Week.name - Week.nanos - Week.normalize - Week.rule_code - Week.n Week.weekday Methods @@ -555,14 +368,6 @@ Methods .. autosummary:: :toctree: api/ - Week.apply - Week.apply_index - Week.copy - Week.isAnchored - Week.onOffset - Week.is_anchored - Week.is_on_offset - Week.__call__ WeekOfMonth ----------- @@ -576,13 +381,6 @@ Properties .. autosummary:: :toctree: api/ - WeekOfMonth.freqstr - WeekOfMonth.kwds - WeekOfMonth.name - WeekOfMonth.nanos - WeekOfMonth.normalize - WeekOfMonth.rule_code - WeekOfMonth.n WeekOfMonth.week Methods @@ -590,14 +388,6 @@ Methods .. autosummary:: :toctree: api/ - WeekOfMonth.apply - WeekOfMonth.apply_index - WeekOfMonth.copy - WeekOfMonth.isAnchored - WeekOfMonth.onOffset - WeekOfMonth.is_anchored - WeekOfMonth.is_on_offset - WeekOfMonth.__call__ WeekOfMonth.weekday LastWeekOfMonth @@ -612,13 +402,6 @@ Properties .. autosummary:: :toctree: api/ - LastWeekOfMonth.freqstr - LastWeekOfMonth.kwds - LastWeekOfMonth.name - LastWeekOfMonth.nanos - LastWeekOfMonth.normalize - LastWeekOfMonth.rule_code - LastWeekOfMonth.n LastWeekOfMonth.weekday LastWeekOfMonth.week @@ -627,14 +410,6 @@ Methods .. autosummary:: :toctree: api/ - LastWeekOfMonth.apply - LastWeekOfMonth.apply_index - LastWeekOfMonth.copy - LastWeekOfMonth.isAnchored - LastWeekOfMonth.onOffset - LastWeekOfMonth.is_anchored - LastWeekOfMonth.is_on_offset - LastWeekOfMonth.__call__ BQuarterEnd ----------- @@ -648,13 +423,6 @@ Properties .. autosummary:: :toctree: api/ - BQuarterEnd.freqstr - BQuarterEnd.kwds - BQuarterEnd.name - BQuarterEnd.nanos - BQuarterEnd.normalize - BQuarterEnd.rule_code - BQuarterEnd.n BQuarterEnd.startingMonth Methods @@ -662,14 +430,6 @@ Methods .. autosummary:: :toctree: api/ - BQuarterEnd.apply - BQuarterEnd.apply_index - BQuarterEnd.copy - BQuarterEnd.isAnchored - BQuarterEnd.onOffset - BQuarterEnd.is_anchored - BQuarterEnd.is_on_offset - BQuarterEnd.__call__ BQuarterBegin ------------- @@ -683,13 +443,6 @@ Properties .. autosummary:: :toctree: api/ - BQuarterBegin.freqstr - BQuarterBegin.kwds - BQuarterBegin.name - BQuarterBegin.nanos - BQuarterBegin.normalize - BQuarterBegin.rule_code - BQuarterBegin.n BQuarterBegin.startingMonth Methods @@ -697,14 +450,6 @@ Methods .. autosummary:: :toctree: api/ - BQuarterBegin.apply - BQuarterBegin.apply_index - BQuarterBegin.copy - BQuarterBegin.isAnchored - BQuarterBegin.onOffset - BQuarterBegin.is_anchored - BQuarterBegin.is_on_offset - BQuarterBegin.__call__ QuarterEnd ---------- @@ -718,13 +463,6 @@ Properties .. autosummary:: :toctree: api/ - QuarterEnd.freqstr - QuarterEnd.kwds - QuarterEnd.name - QuarterEnd.nanos - QuarterEnd.normalize - QuarterEnd.rule_code - QuarterEnd.n QuarterEnd.startingMonth Methods @@ -732,14 +470,6 @@ Methods .. autosummary:: :toctree: api/ - QuarterEnd.apply - QuarterEnd.apply_index - QuarterEnd.copy - QuarterEnd.isAnchored - QuarterEnd.onOffset - QuarterEnd.is_anchored - QuarterEnd.is_on_offset - QuarterEnd.__call__ QuarterBegin ------------ @@ -753,13 +483,6 @@ Properties .. autosummary:: :toctree: api/ - QuarterBegin.freqstr - QuarterBegin.kwds - QuarterBegin.name - QuarterBegin.nanos - QuarterBegin.normalize - QuarterBegin.rule_code - QuarterBegin.n QuarterBegin.startingMonth Methods @@ -767,14 +490,6 @@ Methods .. autosummary:: :toctree: api/ - QuarterBegin.apply - QuarterBegin.apply_index - QuarterBegin.copy - QuarterBegin.isAnchored - QuarterBegin.onOffset - QuarterBegin.is_anchored - QuarterBegin.is_on_offset - QuarterBegin.__call__ BYearEnd -------- @@ -788,13 +503,6 @@ Properties .. autosummary:: :toctree: api/ - BYearEnd.freqstr - BYearEnd.kwds - BYearEnd.name - BYearEnd.nanos - BYearEnd.normalize - BYearEnd.rule_code - BYearEnd.n BYearEnd.month Methods @@ -802,14 +510,6 @@ Methods .. autosummary:: :toctree: api/ - BYearEnd.apply - BYearEnd.apply_index - BYearEnd.copy - BYearEnd.isAnchored - BYearEnd.onOffset - BYearEnd.is_anchored - BYearEnd.is_on_offset - BYearEnd.__call__ BYearBegin ---------- @@ -823,13 +523,6 @@ Properties .. autosummary:: :toctree: api/ - BYearBegin.freqstr - BYearBegin.kwds - BYearBegin.name - BYearBegin.nanos - BYearBegin.normalize - BYearBegin.rule_code - BYearBegin.n BYearBegin.month Methods @@ -837,14 +530,6 @@ Methods .. autosummary:: :toctree: api/ - BYearBegin.apply - BYearBegin.apply_index - BYearBegin.copy - BYearBegin.isAnchored - BYearBegin.onOffset - BYearBegin.is_anchored - BYearBegin.is_on_offset - BYearBegin.__call__ YearEnd ------- @@ -858,13 +543,6 @@ Properties .. autosummary:: :toctree: api/ - YearEnd.freqstr - YearEnd.kwds - YearEnd.name - YearEnd.nanos - YearEnd.normalize - YearEnd.rule_code - YearEnd.n YearEnd.month Methods @@ -872,14 +550,6 @@ Methods .. autosummary:: :toctree: api/ - YearEnd.apply - YearEnd.apply_index - YearEnd.copy - YearEnd.isAnchored - YearEnd.onOffset - YearEnd.is_anchored - YearEnd.is_on_offset - YearEnd.__call__ YearBegin --------- @@ -893,13 +563,6 @@ Properties .. autosummary:: :toctree: api/ - YearBegin.freqstr - YearBegin.kwds - YearBegin.name - YearBegin.nanos - YearBegin.normalize - YearBegin.rule_code - YearBegin.n YearBegin.month Methods @@ -907,14 +570,6 @@ Methods .. autosummary:: :toctree: api/ - YearBegin.apply - YearBegin.apply_index - YearBegin.copy - YearBegin.isAnchored - YearBegin.onOffset - YearBegin.is_anchored - YearBegin.is_on_offset - YearBegin.__call__ FY5253 ------ @@ -928,13 +583,6 @@ Properties .. autosummary:: :toctree: api/ - FY5253.freqstr - FY5253.kwds - FY5253.name - FY5253.nanos - FY5253.normalize - FY5253.rule_code - FY5253.n FY5253.startingMonth FY5253.variation FY5253.weekday @@ -944,16 +592,8 @@ Methods .. autosummary:: :toctree: api/ - FY5253.apply - FY5253.apply_index - FY5253.copy FY5253.get_rule_code_suffix FY5253.get_year_end - FY5253.isAnchored - FY5253.onOffset - FY5253.is_anchored - FY5253.is_on_offset - FY5253.__call__ FY5253Quarter ------------- @@ -967,13 +607,6 @@ Properties .. autosummary:: :toctree: api/ - FY5253Quarter.freqstr - FY5253Quarter.kwds - FY5253Quarter.name - FY5253Quarter.nanos - FY5253Quarter.normalize - FY5253Quarter.rule_code - FY5253Quarter.n FY5253Quarter.qtr_with_extra_week FY5253Quarter.startingMonth FY5253Quarter.variation @@ -984,17 +617,9 @@ Methods .. autosummary:: :toctree: api/ - FY5253Quarter.apply - FY5253Quarter.apply_index - FY5253Quarter.copy FY5253Quarter.get_rule_code_suffix FY5253Quarter.get_weeks - FY5253Quarter.isAnchored - FY5253Quarter.onOffset - FY5253Quarter.is_anchored - FY5253Quarter.is_on_offset FY5253Quarter.year_has_extra_week - FY5253Quarter.__call__ Easter ------ @@ -1008,27 +633,12 @@ Properties .. autosummary:: :toctree: api/ - Easter.freqstr - Easter.kwds - Easter.name - Easter.nanos - Easter.normalize - Easter.rule_code - Easter.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Easter.apply - Easter.apply_index - Easter.copy - Easter.isAnchored - Easter.onOffset - Easter.is_anchored - Easter.is_on_offset - Easter.__call__ Tick ---- @@ -1043,27 +653,12 @@ Properties :toctree: api/ Tick.delta - Tick.freqstr - Tick.kwds - Tick.name - Tick.nanos - Tick.normalize - Tick.rule_code - Tick.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Tick.copy - Tick.isAnchored - Tick.onOffset - Tick.is_anchored - Tick.is_on_offset - Tick.__call__ - Tick.apply - Tick.apply_index Day --- @@ -1078,27 +673,12 @@ Properties :toctree: api/ Day.delta - Day.freqstr - Day.kwds - Day.name - Day.nanos - Day.normalize - Day.rule_code - Day.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Day.copy - Day.isAnchored - Day.onOffset - Day.is_anchored - Day.is_on_offset - Day.__call__ - Day.apply - Day.apply_index Hour ---- @@ -1113,27 +693,12 @@ Properties :toctree: api/ Hour.delta - Hour.freqstr - Hour.kwds - Hour.name - Hour.nanos - Hour.normalize - Hour.rule_code - Hour.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Hour.copy - Hour.isAnchored - Hour.onOffset - Hour.is_anchored - Hour.is_on_offset - Hour.__call__ - Hour.apply - Hour.apply_index Minute ------ @@ -1148,27 +713,12 @@ Properties :toctree: api/ Minute.delta - Minute.freqstr - Minute.kwds - Minute.name - Minute.nanos - Minute.normalize - Minute.rule_code - Minute.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Minute.copy - Minute.isAnchored - Minute.onOffset - Minute.is_anchored - Minute.is_on_offset - Minute.__call__ - Minute.apply - Minute.apply_index Second ------ @@ -1183,27 +733,12 @@ Properties :toctree: api/ Second.delta - Second.freqstr - Second.kwds - Second.name - Second.nanos - Second.normalize - Second.rule_code - Second.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Second.copy - Second.isAnchored - Second.onOffset - Second.is_anchored - Second.is_on_offset - Second.__call__ - Second.apply - Second.apply_index Milli ----- @@ -1218,27 +753,12 @@ Properties :toctree: api/ Milli.delta - Milli.freqstr - Milli.kwds - Milli.name - Milli.nanos - Milli.normalize - Milli.rule_code - Milli.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Milli.copy - Milli.isAnchored - Milli.onOffset - Milli.is_anchored - Milli.is_on_offset - Milli.__call__ - Milli.apply - Milli.apply_index Micro ----- @@ -1253,27 +773,12 @@ Properties :toctree: api/ Micro.delta - Micro.freqstr - Micro.kwds - Micro.name - Micro.nanos - Micro.normalize - Micro.rule_code - Micro.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Micro.copy - Micro.isAnchored - Micro.onOffset - Micro.is_anchored - Micro.is_on_offset - Micro.__call__ - Micro.apply - Micro.apply_index Nano ---- @@ -1288,27 +793,12 @@ Properties :toctree: api/ Nano.delta - Nano.freqstr - Nano.kwds - Nano.name - Nano.nanos - Nano.normalize - Nano.rule_code - Nano.n Methods ~~~~~~~ .. autosummary:: :toctree: api/ - Nano.copy - Nano.isAnchored - Nano.onOffset - Nano.is_anchored - Nano.is_on_offset - Nano.__call__ - Nano.apply - Nano.apply_index .. _api.frequencies: diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index e06085c4c5c26..129cc071af2c7 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -681,28 +681,34 @@ Deprecations - Deprecated the ``convert_float`` optional argument in :func:`read_excel` and :meth:`ExcelFile.parse` (:issue:`41127`) - Deprecated behavior of :meth:`DatetimeIndex.union` with mixed timezones; in a future version both will be cast to UTC instead of object dtype (:issue:`39328`) - Deprecated using ``usecols`` with out of bounds indices for ``read_csv`` with ``engine="c"`` (:issue:`25623`) -- Deprecated passing arguments as positional (except for ``"codes"``) in :meth:`MultiIndex.codes` (:issue:`41485`) -- Deprecated passing arguments as positional in :meth:`Index.set_names` and :meth:`MultiIndex.set_names` (except for ``names``) (:issue:`41485`) -- Deprecated passing arguments (apart from ``cond`` and ``other``) as positional in :meth:`DataFrame.mask` and :meth:`Series.mask` (:issue:`41485`) -- Deprecated passing arguments as positional in :meth:`DataFrame.clip` and :meth:`Series.clip` (other than ``"upper"`` and ``"lower"``) (:issue:`41485`) - Deprecated special treatment of lists with first element a Categorical in the :class:`DataFrame` constructor; pass as ``pd.DataFrame({col: categorical, ...})`` instead (:issue:`38845`) -- Deprecated passing arguments as positional (except for ``"method"``) in :meth:`DataFrame.interpolate` and :meth:`Series.interpolate` (:issue:`41485`) -- Deprecated passing arguments as positional in :meth:`DataFrame.ffill`, :meth:`Series.ffill`, :meth:`DataFrame.bfill`, and :meth:`Series.bfill` (:issue:`41485`) -- Deprecated passing arguments as positional in :meth:`DataFrame.sort_values` (other than ``"by"``) and :meth:`Series.sort_values` (:issue:`41485`) +- Deprecated construction of :class:`Series` or :class:`DataFrame` with ``DatetimeTZDtype`` data and ``datetime64[ns]`` dtype. Use ``Series(data).dt.tz_localize(None)`` instead (:issue:`41555`,:issue:`33401`) +- In a future version, constructing :class:`Series` or :class:`DataFrame` with ``datetime64[ns]`` data and ``DatetimeTZDtype`` will treat the data as wall-times instead of as UTC times (matching DatetimeIndex behavior). To treat the data as UTC times, use ``pd.Series(data).dt.tz_localize("UTC").dt.tz_convert(dtype.tz)`` or ``pd.Series(data.view("int64"), dtype=dtype)`` (:issue:`33401`) + +.. _whatsnew_130.deprecations.positional_arguments: + +Deprecated Allowing Passing Arguments As Positional +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Deprecated passing arguments as positional (other than ``filepath_or_buffer``) in :func:`read_csv` (:issue:`41485`) +- Deprecated passing arguments as positional (other than ``filepath_or_buffer``) in :func:`read_table` (:issue:`41485`) +- Deprecated passing arguments as positional in :meth:`DataFrame.set_axis` and :meth:`Series.set_axis` (other than ``"labels"``) (:issue:`41485`) +- Deprecated passing arguments as positional in :meth:`DataFrame.where` and :meth:`Series.where` (other than ``"cond"`` and ``"other"``) (:issue:`41485`) +- Deprecated passing arguments as positional in :meth:`DataFrame.drop` (other than ``"labels"``) and :meth:`Series.drop` (:issue:`41485`) - Deprecated passing arguments as positional in :meth:`DataFrame.dropna` and :meth:`Series.dropna` (:issue:`41485`) - Deprecated passing arguments as positional in :meth:`DataFrame.set_index` (other than ``"keys"``) (:issue:`41485`) -- Deprecated passing arguments as positional (except for ``"levels"``) in :meth:`MultiIndex.set_levels` (:issue:`41485`) - Deprecated passing arguments as positional in :meth:`DataFrame.sort_index` and :meth:`Series.sort_index` (:issue:`41485`) - Deprecated passing arguments as positional in :meth:`DataFrame.drop_duplicates` (except for ``subset``), :meth:`Series.drop_duplicates`, :meth:`Index.drop_duplicates` and :meth:`MultiIndex.drop_duplicates`(:issue:`41485`) - Deprecated passing arguments (apart from ``value``) as positional in :meth:`DataFrame.fillna` and :meth:`Series.fillna` (:issue:`41485`) - Deprecated passing arguments as positional in :meth:`DataFrame.reset_index` (other than ``"level"``) and :meth:`Series.reset_index` (:issue:`41485`) -- Deprecated construction of :class:`Series` or :class:`DataFrame` with ``DatetimeTZDtype`` data and ``datetime64[ns]`` dtype. Use ``Series(data).dt.tz_localize(None)`` instead (:issue:`41555`,:issue:`33401`) -- In a future version, constructing :class:`Series` or :class:`DataFrame` with ``datetime64[ns]`` data and ``DatetimeTZDtype`` will treat the data as wall-times instead of as UTC times (matching DatetimeIndex behavior). To treat the data as UTC times, use ``pd.Series(data).dt.tz_localize("UTC").dt.tz_convert(dtype.tz)`` or ``pd.Series(data.view("int64"), dtype=dtype)`` (:issue:`33401`) -- Deprecated passing arguments as positional in :meth:`DataFrame.set_axis` and :meth:`Series.set_axis` (other than ``"labels"``) (:issue:`41485`) -- Deprecated passing arguments as positional in :meth:`DataFrame.where` and :meth:`Series.where` (other than ``"cond"`` and ``"other"``) (:issue:`41485`) -- Deprecated passing arguments as positional (other than ``filepath_or_buffer``) in :func:`read_csv` (:issue:`41485`) -- Deprecated passing arguments as positional in :meth:`DataFrame.drop` (other than ``"labels"``) and :meth:`Series.drop` (:issue:`41485`) -- Deprecated passing arguments as positional (other than ``filepath_or_buffer``) in :func:`read_table` (:issue:`41485`) +- Deprecated passing arguments as positional (except for ``"method"``) in :meth:`DataFrame.interpolate` and :meth:`Series.interpolate` (:issue:`41485`) +- Deprecated passing arguments as positional in :meth:`DataFrame.ffill`, :meth:`Series.ffill`, :meth:`DataFrame.bfill`, and :meth:`Series.bfill` (:issue:`41485`) +- Deprecated passing arguments as positional in :meth:`DataFrame.sort_values` (other than ``"by"``) and :meth:`Series.sort_values` (:issue:`41485`) +- Deprecated passing arguments as positional in :meth:`DataFrame.clip` and :meth:`Series.clip` (other than ``"upper"`` and ``"lower"``) (:issue:`41485`) +- Deprecated passing arguments (apart from ``cond`` and ``other``) as positional in :meth:`DataFrame.mask` and :meth:`Series.mask` (:issue:`41485`) +- Deprecated passing arguments as positional (except for ``"levels"``) in :meth:`MultiIndex.set_levels` (:issue:`41485`) +- Deprecated passing arguments as positional in :meth:`Index.set_names` and :meth:`MultiIndex.set_names` (except for ``names``) (:issue:`41485`) +- Deprecated passing arguments as positional (except for ``"codes"``) in :meth:`MultiIndex.codes` (:issue:`41485`) .. _whatsnew_130.deprecations.nuisance_columns: