-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Fixing EX01 - Added examples #54254
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
Conversation
pandas/core/indexers/objects.py
Outdated
... return start, end | ||
>>> df = pd.DataFrame({"values": range(5)}) | ||
>>> indexer = CustomIndexer(window_size=2) | ||
>>> df.rolling(indexer).sum() # doctest: +SKIP |
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.
what was it complaining about? could you show the error please?
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.
+ /Users/dealeon/mambaforge/envs/pandas-dev/bin/ninja
[1/1] Generating write_version_file with a custom command
[1] 33979 segmentation fault ./scripts/validate_docstrings.py pandas.api.indexers.BaseIndexer```
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.
you need to update start
inside the loop too (not just end
)
/preview |
No preview found for PR #54254. Did the docs build complete? |
/preview |
Website preview of this PR available at: https://pandas.pydata.org/preview/54254/ |
It looks like failing tests are unrelated |
Thanks @DeaMariaLeon |
Towards #37875
Notes:
On the web there are only 3 custom rolling windows:
BaseIndexer
,FixedForwardWindowIndexer
andVariableOffsetWindowIndexer
. But there are more of them in the code. LikeExpandingIndexer
etc..Added# doctest: +SKIP
to the last line ofBaseIndexer
becausevalidate_docstrings.py
was complaining.I need to do \preview here as I was having a lot of issues with the html file made with Sphinx.
I'll open a separate PR to correct the User Guide on
BaseIndexer
.