Skip to content

Conversation

phofl
Copy link
Member

@phofl phofl commented Jun 3, 2022

The except clause can be removed in 1.5 through handling cases like [1, "a", None] in algorithms, but this would change the behavior a bit so would avoid backporting

@phofl phofl added Reshaping Concat, Merge/Join, Stack/Unstack, Explode Regression Functionality that used to work in a prior pandas version labels Jun 3, 2022
@phofl phofl added this to the 1.4.3 milestone Jun 3, 2022
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @phofl

if sort:
try:
index = index.sort_values()
index_sorted = safe_sort(index)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for clarity, can you rename index_sorted as the return type from safe_sort is an numpy array and not an index.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, done

@jreback jreback merged commit a54ac87 into pandas-dev:main Jun 5, 2022
@jreback
Copy link
Contributor

jreback commented Jun 5, 2022

very nice @phofl

@jreback
Copy link
Contributor

jreback commented Jun 5, 2022

@meeseeksdev backport 1.4.x

@lumberbot-app
Copy link

lumberbot-app bot commented Jun 5, 2022

Could not push to auto-backport-of-pr-47206-on-1.4.x due to error, aborting.

simonjayhawkins pushed a commit that referenced this pull request Jun 6, 2022
…for mixed column names) (#47251)

Backport PR #47206: REGR: concat not sorting columns for mixed column names

Co-authored-by: Patrick Hoefler <61934744+phofl@users.noreply.github.com>
@phofl phofl deleted the 47127 branch June 6, 2022 20:48
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Regression Functionality that used to work in a prior pandas version Reshaping Concat, Merge/Join, Stack/Unstack, Explode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: concat column order behaviors changes after 1.4

3 participants