Skip to content

Commit cd04280

Browse files
jbrockmendeljreback
authored andcommitted
DEPR: change DataFrame.append default sort kwarg (#30251)
1 parent 8c6a994 commit cd04280

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pandas/core/frame.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -6644,7 +6644,7 @@ def infer(x):
66446644
# ----------------------------------------------------------------------
66456645
# Merging / joining methods
66466646

6647-
def append(self, other, ignore_index=False, verify_integrity=False, sort=None):
6647+
def append(self, other, ignore_index=False, verify_integrity=False, sort=False):
66486648
"""
66496649
Append rows of `other` to the end of caller, returning a new object.
66506650
@@ -6658,14 +6658,13 @@ def append(self, other, ignore_index=False, verify_integrity=False, sort=None):
66586658
If True, do not use the index labels.
66596659
verify_integrity : bool, default False
66606660
If True, raise ValueError on creating index with duplicates.
6661-
sort : bool, default None
6661+
sort : bool, default False
66626662
Sort columns if the columns of `self` and `other` are not aligned.
6663-
The default sorting is deprecated and will change to not-sorting
6664-
in a future version of pandas. Explicitly pass ``sort=True`` to
6665-
silence the warning and sort. Explicitly pass ``sort=False`` to
6666-
silence the warning and not sort.
66676663
66686664
.. versionadded:: 0.23.0
6665+
.. versionchanged:: 1.0.0
6666+
6667+
Changed to not sort by default.
66696668
66706669
Returns
66716670
-------

0 commit comments

Comments
 (0)