Skip to content

Commit c663dee

Browse files
committed
BUG: Fixed concat warning message (#21362)
(cherry picked from commit 649bfae)
1 parent 5506021 commit c663dee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/source/whatsnew/v0.23.1.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Reshaping
107107
^^^^^^^^^
108108

109109
- Bug in :func:`concat` where error was raised in concatenating :class:`Series` with numpy scalar and tuple names (:issue:`21015`)
110-
-
110+
- Bug in :func:`concat` warning message providing the wrong guidance for future behavior (:issue:`21101`)
111111

112112
Other
113113
^^^^^

pandas/core/indexes/api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
Sorting because non-concatenation axis is not aligned. A future version
2525
of pandas will change to not sort by default.
2626
27-
To accept the future behavior, pass 'sort=True'.
27+
To accept the future behavior, pass 'sort=False'.
2828
29-
To retain the current behavior and silence the warning, pass sort=False
29+
To retain the current behavior and silence the warning, pass 'sort=True'.
3030
""")
3131

3232

0 commit comments

Comments
 (0)