File tree 2 files changed +24
-0
lines changed
getting_started/comparison/includes
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,18 @@ or overwrite the original one:
11
11
.. code-block :: python
12
12
13
13
df = df.sort_values(" col1" )
14
+
15
+ .. note ::
16
+
17
+ You will see an ``inplace=True `` or ``copy=False `` keyword argument available for
18
+ some methods:
19
+
20
+ .. code-block :: python
21
+
22
+ df.replace(5 , inplace = True )
23
+
24
+ There is an active discussion about deprecating and removing ``inplace `` and ``copy `` for
25
+ most methods (e.g. ``dropna ``) except for a very small subset of methods
26
+ (including ``replace ``). Both keywords won't be
27
+ necessary anymore in the context of Copy-on-Write. The proposal can be found
28
+ [here](https://github.com/pandas-dev/pandas/pull/51466).
Original file line number Diff line number Diff line change @@ -818,6 +818,14 @@ Other API changes
818
818
- Added :func: `pandas.api.types.is_any_real_numeric_dtype ` to check for real numeric dtypes (:issue: `51152 `)
819
819
-
820
820
821
+ .. note ::
822
+
823
+ A current PDEP proposes the deprecation and removal of the keywords ``inplace `` and ``copy ``
824
+ for all but a small subset of methods from the pandas API. The current discussion takes place
825
+ at [here](https://github.com/pandas-dev/pandas/pull/51466). The keywords won't be necessary
826
+ anymore in the context of Copy-on-Write. If this proposal is accepted, both
827
+ keywords would be deprecated in the next release of pandas and removed in pandas 3.0.
828
+
821
829
.. ---------------------------------------------------------------------------
822
830
.. _whatsnew_200.deprecations :
823
831
@@ -1424,6 +1432,7 @@ Metadata
1424
1432
1425
1433
Other
1426
1434
^^^^^
1435
+
1427
1436
- Bug in :meth: `Series.searchsorted ` inconsistent behavior when accepting :class: `DataFrame ` as parameter ``value `` (:issue: `49620 `)
1428
1437
- Bug in :func: `array ` failing to raise on :class: `DataFrame ` inputs (:issue: `51167 `)
1429
1438
-
You can’t perform that action at this time.
0 commit comments