Skip to content

BUG: casting on concat with empties #38907

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 2 commits into from
Jan 3, 2021

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Jan 2, 2021

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

Covers the case missed by #38843

@@ -318,6 +318,12 @@ def _concatenate_join_units(
# Concatenating join units along ax0 is handled in _merge_blocks.
raise AssertionError("Concatenating join units along axis0")

nonempties = [
x for x in join_units if x.block is None or x.block.shape[concat_axis] > 0
Copy link
Contributor

Choose a reason for hiding this comment

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

consider having a method on block for this

@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Jan 3, 2021
@jreback jreback added this to the 1.3 milestone Jan 3, 2021
@jreback jreback merged commit 04282c7 into pandas-dev:master Jan 3, 2021
@jbrockmendel jbrockmendel deleted the bug-nonempties-2 branch January 3, 2021 18:08
jorisvandenbossche added a commit to jorisvandenbossche/pandas that referenced this pull request Jan 8, 2021
jreback pushed a commit that referenced this pull request Jan 8, 2021
* Revert "BUG: casting on concat with empties (#38907)"

This reverts commit 04282c7.

* Revert "BUG: inconsistent concat casting EA vs non-EA (#38843)"

This reverts commit 2362df9.
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
)

* Revert "BUG: casting on concat with empties (pandas-dev#38907)"

This reverts commit 04282c7.

* Revert "BUG: inconsistent concat casting EA vs non-EA (pandas-dev#38843)"

This reverts commit 2362df9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants