Skip to content

Commit f4fab6d

Browse files
authored
DOC: Change warning for sort behavior in concat (pandas-dev#37948)
1 parent 4b65290 commit f4fab6d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

doc/source/user_guide/merging.rst

+1-8
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ behavior:
194194
},
195195
index=[2, 3, 6, 7],
196196
)
197-
result = pd.concat([df1, df4], axis=1, sort=False)
197+
result = pd.concat([df1, df4], axis=1)
198198
199199
200200
.. ipython:: python
@@ -204,13 +204,6 @@ behavior:
204204
p.plot([df1, df4], result, labels=["df1", "df4"], vertical=False);
205205
plt.close("all");
206206
207-
.. warning::
208-
209-
The default behavior with ``join='outer'`` is to sort the other axis
210-
(columns in this case). In a future version of pandas, the default will
211-
be to not sort. We specified ``sort=False`` to opt in to the new
212-
behavior now.
213-
214207
Here is the same thing with ``join='inner'``:
215208

216209
.. ipython:: python

0 commit comments

Comments
 (0)