Skip to content

BUG: concat sorting when sort=False for all dti #51683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

phofl
Copy link
Member

@phofl phofl commented Feb 28, 2023

lets see if this passes everything

@phofl phofl marked this pull request as draft February 28, 2023 00:49
@phofl phofl marked this pull request as ready for review February 28, 2023 14:57
@phofl phofl requested a review from jbrockmendel February 28, 2023 21:56
@jbrockmendel
Copy link
Member

Looks fine, haven't looked closely. Bug me about it next week.

@phofl
Copy link
Member Author

phofl commented Mar 4, 2023

This one isn't urgent

# Conflicts:
#	doc/source/whatsnew/v2.1.0.rst
@mroeschke mroeschke added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Mar 8, 2023
@@ -280,7 +280,6 @@ def _find_common_index_dtype(inds):
raise TypeError("Cannot join tz-naive with tz-aware DatetimeIndex")

if len(dtis) == len(indexes):
sort = True
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if the sort = False below also causes a similar issue

Copy link
Member Author

Choose a reason for hiding this comment

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

Based on the comment it looks like this is necessary, but yes this probably causes trouble as well

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Apr 14, 2023
@mroeschke
Copy link
Member

Feel free to reopen if/when you have the time to circle back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Inconsistent implicit sorting when doing pd.concat([pd.Series(1, Index(dtype='object'), ...], axis=1)
3 participants