ENH: add optional sort_order keyword to concat()
.
#41016
Labels
Enhancement
Needs Triage
Issue that has not been reviewed by a pandas team member
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem?
xref #33634
When concatenating,
concat
uses the index from the first series to determine the order of the non-concatenated axis.It would be neat to have a way specify this order with either a function or a list. Currently,
sort=True
can be used, but it only allows for sorting.Describe the solution you'd like
The solution could be either to:
key
argument for this.API breaking implications
I think this change can be backward compatible
Describe alternatives you've considered
As an alternative, reindexing could be used. But this requires the extraction of the largest index first.
The text was updated successfully, but these errors were encountered: