-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
ENH: Series.explode to support pyarrow-backed list types #53602
ENH: Series.explode to support pyarrow-backed list types #53602
Conversation
@@ -141,3 +143,25 @@ def test_explode_scalars_can_ignore_index(): | |||
result = s.explode(ignore_index=True) | |||
expected = pd.Series([1, 2, 3]) | |||
tm.assert_series_equal(result, expected) | |||
|
|||
|
|||
@pytest.mark.skipif(pa_version_under7p0, reason="minimum pyarrow not installed") |
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.
Nit: Could you just use pa = pytest.importorskip("pyarrow")
below?
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.
updated
|
||
|
||
@pytest.mark.skipif(pa_version_under7p0, reason="minimum pyarrow not installed") | ||
def test_explode_pyarrow_list_type(): |
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.
Could you parameterize on ignore_index
as well?
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.
updated
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.
Looks good just a merge conflict
Thanks @lukemanley |
…53602) * ENH: Series.explode to support pyarrow-backed list types * gh refs * update test
…53602) * ENH: Series.explode to support pyarrow-backed list types * gh refs * update test
doc/source/whatsnew/v2.1.0.rst
file if fixing a bug or adding a new feature.