Skip to content

Commit 649bfae

Browse files
TomAugspurgerjorisvandenbossche
authored andcommitted
BUG: Fixed concat warning message (pandas-dev#21362)
1 parent 5bbbaf6 commit 649bfae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/source/whatsnew/v0.23.1.txt

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ I/O
7474
Reshaping
7575

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

7879
Other
7980

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)