Skip to content
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: add ExtensionArray._explode method; adjust pyarrow extension for use of new interface #54834

Merged
merged 10 commits into from
Sep 18, 2023

Conversation

douglasdavis
Copy link
Contributor

@douglasdavis douglasdavis commented Aug 29, 2023

@mroeschke mroeschke added the ExtensionArray Extending pandas with custom dtypes or arrays. label Aug 29, 2023
@mroeschke
Copy link
Member

Error: /home/runner/work/pandas/pandas/pandas/core/arrays/base.py:1928:GL01:pandas.api.extensions.ExtensionArray._explode:Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between)
Error: /home/runner/work/pandas/pandas/pandas/core/arrays/base.py:1928:GL02:pandas.api.extensions.ExtensionArray._explode:Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes)
Error: /home/runner/work/pandas/pandas/pandas/core/arrays/base.py:1928:GL03:pandas.api.extensions.ExtensionArray._explode:Double line break found; please use only one blank line to separate sections or paragraphs, and do not leave blank lines at the end of docstrings
Error: /home/runner/work/pandas/pandas/pandas/core/arrays/base.py:1928:SA03:pandas.api.extensions.ExtensionArray._explode:Description should be capitalized for See Also "Series.explode" reference
Error: /home/runner/work/pandas/pandas/pandas/core/arrays/base.py:1928:EX01:pandas.api.extensions.ExtensionArray._explode:No examples section found

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

LGTM cc @jbrockmendel if you have thoughts

@mroeschke mroeschke added this to the 2.2 milestone Aug 31, 2023
@mroeschke
Copy link
Member

Could you fix the merge conflict? I think this should be good to merge after that

@douglasdavis
Copy link
Contributor Author

yep, fixed! (CI failures look unrelated; spelling in a file untouched but this PR and an installation issue associated with BLAS)

@mroeschke mroeschke merged commit 6b3e66b into pandas-dev:main Sep 18, 2023
31 of 33 checks passed
@mroeschke
Copy link
Member

Thanks @douglasdavis

@douglasdavis douglasdavis deleted the explode-method-extension-array branch September 19, 2023 00:37
hedeershowk pushed a commit to hedeershowk/pandas that referenced this pull request Sep 20, 2023
…or use of new interface (pandas-dev#54834)

* add ExtensionArray._explode method; adjust pyarrow extension for use

* black

* add to whatsnew 2.1.0

* pre-commit fix

* add _explode to docs

* Update pandas/core/arrays/arrow/array.py

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>

* switch whatsnew files

* adjust docstring

* fix docstring

---------

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: make _explode a method of the ExtensionArray interface
2 participants