You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop concat from attempting to sort mismatched columns by default (pandas-dev#20613)
* Stop concat from attempting to sort mismatched columns by default
Preserve column order upon concatenation to obey
least astonishment principle.
Allow old behavior to be enabled by adding a boolean switch to
concat and DataFrame.append, mismatch_sort, which is by default disabled.
Closespandas-dev#4588
In a future version of pandas :func:`pandas.concat` will no longer sort the non-concatenation axis when it is not already aligned.
703
+
The current behavior is the same as the previous (sorting), but now a warning is issued when ``sort`` is not specified and the non-concatenation axis is not aligned (:issue:`4588`).
0 commit comments