DOC Replace @doc decorator with inline docstring in core/arrays/sparse/array.py#63941
Merged
mroeschke merged 5 commits intopandas-dev:mainfrom Jan 30, 2026
Merged
Conversation
… a copy of the docstring from the ExtensionArray duplicated method.
Contributor
Author
|
This is my first PR to this repo, so if I've fudged normal policy anywhere, just let me know! |
mroeschke
requested changes
Jan 29, 2026
pandas/core/arrays/sparse/array.py
Outdated
|
|
||
| Examples | ||
| -------- | ||
| >>> pd.array([1, 1, 2, 3, 3], dtype="Int64").duplicated() |
Member
There was a problem hiding this comment.
Can you modify this example to use a SparseDtype(np.int64) to match the parent class?
Contributor
Author
There was a problem hiding this comment.
The docstring check script threw an error after I made the changes, but I'm not sure why. I ran the example code from the docstring and it executes normally. I pushed the commit to this branch so you can see; do you know what is making it fail the test?
Contributor
Author
|
I've made the change in my local feature branch, but am having some issues pushing them to the remote feature branch. |
mroeschke
approved these changes
Jan 30, 2026
Member
|
Thanks @evensong |
Aryn1102
pushed a commit
to Aryn1102/pandas
that referenced
this pull request
Jan 31, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
@Appender,@Substitution,@docwith inlined docstrings #62437doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.AGENTS.md.