-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG-22796 Concat multicolumn tz-aware DataFrame #23036
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9e760a0
BUG-22796 Concat multicolumn tz-aware DataFrame fails
tonytao2012 5ef5dd2
Fixed shape issues
tonytao2012 c640f69
Pass when block is not None
tonytao2012 5e57d77
Added whatsnew entry
tonytao2012 0730adf
Merge remote-tracking branch 'upstream/master' into BUG-22796
tonytao2012 2e89848
Fixed whitespace issues
tonytao2012 53c85aa
Added additional test, linked to new issue
tonytao2012 51ef6e5
Fixed test, explained bug in more detail for whatsnew
tonytao2012 54c153d
Edited whatsnew
tonytao2012 d6ab866
Merge branch 'master' into PR_TOOL_MERGE_PR_23036
jreback a0570bd
use construct_array_type
jreback 644b349
add strict
jreback ce31274
handle alignment case
jreback 93e97dc
Merge branch 'master' into PR_TOOL_MERGE_PR_23036
jreback de4c427
lint
jreback File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can u walk back up the stack and see exactly where block is None- this is a guarantee iirc of this function to not be None so this might be an error higher up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block is none when there are a mismatched number of columns between the two concatenating dataframes. I assumed this was correct behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I last changed this, I was really trying NOT to use DTI directly here as we are trying isolate things like that to higher level methods.
See if you can revise, otherwise I will take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, in that case, I'm not sure what to do. Clearly, block is supposed to be None in cases where the columns are mismatched:
When block is None, we have to create and return some array in get_reindexed_values, but np arrays can't have a tz dtype. I apologize if I'm missing something obvious. Feel free to take over the issue if you'd like, as I'm unsure of how to continue from here. I'll also keep thinking about it.