Skip to content

Commit e2d3798

Browse files
phoflpmhatre1
authored andcommitted
Enforce silent downcasting deprecation (pandas-dev#57328)
* Enforce silent downcasting deprecation * Update * Update * Add whatsnew * Fixup docstrings * Update
1 parent fda31c4 commit e2d3798

31 files changed

+155
-992
lines changed

doc/source/reference/frame.rst

-2
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ Missing data handling
206206
.. autosummary::
207207
:toctree: api/
208208

209-
DataFrame.backfill
210209
DataFrame.bfill
211210
DataFrame.dropna
212211
DataFrame.ffill
@@ -216,7 +215,6 @@ Missing data handling
216215
DataFrame.isnull
217216
DataFrame.notna
218217
DataFrame.notnull
219-
DataFrame.pad
220218
DataFrame.replace
221219

222220
Reshaping, sorting, transposing

doc/source/reference/series.rst

-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ Missing data handling
207207
.. autosummary::
208208
:toctree: api/
209209

210-
Series.backfill
211210
Series.bfill
212211
Series.dropna
213212
Series.ffill
@@ -217,7 +216,6 @@ Missing data handling
217216
Series.isnull
218217
Series.notna
219218
Series.notnull
220-
Series.pad
221219
Series.replace
222220

223221
Reshaping, sorting

doc/source/user_guide/basics.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,8 @@ filling method chosen from the following table:
13081308
:header: "Method", "Action"
13091309
:widths: 30, 50
13101310

1311-
pad / ffill, Fill values forward
1312-
bfill / backfill, Fill values backward
1311+
ffill, Fill values forward
1312+
bfill, Fill values backward
13131313
nearest, Fill from the nearest index value
13141314

13151315
We illustrate these fill methods on a simple Series:

doc/source/whatsnew/v2.2.0.rst

+2
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ For example:
619619
620620
pd.date_range('2020-01-01', periods=3, freq='QE-NOV')
621621
622+
.. _whatsnew_220.silent_downcasting:
623+
622624
Deprecated automatic downcasting
623625
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
624626

doc/source/whatsnew/v3.0.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ Removal of prior version deprecations/changes
107107
- :func:`read_excel`, :func:`read_json`, :func:`read_html`, and :func:`read_xml` no longer accept raw string or byte representation of the data. That type of data must be wrapped in a :py:class:`StringIO` or :py:class:`BytesIO` (:issue:`53767`)
108108
- All arguments except the first ``path``-like argument in IO writers are now keyword only (:issue:`54229`)
109109
- Changed the default value of ``observed`` in :meth:`DataFrame.groupby` and :meth:`Series.groupby` to ``True`` (:issue:`51811`)
110+
- Enforced silent-downcasting deprecation for :ref:`all relevant methods <whatsnew_220.silent_downcasting>` (:issue:`54710`)
110111
- Removed ``DataFrame.applymap``, ``Styler.applymap`` and ``Styler.applymap_index`` (:issue:`52364`)
111112
- Removed ``DataFrame.bool`` and ``Series.bool`` (:issue:`51756`)
112113
- Removed ``DataFrame.first`` and ``DataFrame.last`` (:issue:`53710`)

0 commit comments

Comments
 (0)