Skip to content

Conversation

@debnathshoham
Copy link
Contributor

@debnathshoham debnathshoham commented Nov 13, 2022

@debnathshoham debnathshoham added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Nov 13, 2022
tm.assert_frame_equal(result, expected)


def test_multi_columns2():
Copy link
Member

Choose a reason for hiding this comment

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

Can you give a better name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

"C": [1, 2, np.nan, np.nan, 3, 4],
},
index=[0, 0, 1, 2, 3, 3],
).astype({"A": object, "C": object})
Copy link
Member

Choose a reason for hiding this comment

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

Can you avoid the astype call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done. used np.array to set dtype of the cols

@phofl phofl added this to the 2.0 milestone Nov 16, 2022
@mroeschke mroeschke merged commit 2455f88 into pandas-dev:main Nov 16, 2022
@mroeschke
Copy link
Member

Thanks @debnathshoham

@debnathshoham debnathshoham deleted the gh46084_dfexplode_bug branch November 17, 2022 05:46
MarcoGorelli pushed a commit to MarcoGorelli/pandas that referenced this pull request Nov 18, 2022
* BUG: df.explode mulitcol with Nan+emptylist

* suggested changes
mliu08 pushed a commit to mliu08/pandas that referenced this pull request Nov 27, 2022
* BUG: df.explode mulitcol with Nan+emptylist

* suggested changes
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.explode incomplete support on multiple columns with NaN or empty lists

3 participants