Skip to content

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

Merged
merged 5 commits into from
Jul 26, 2023
Merged

Conversation

DeaMariaLeon
Copy link
Member

@DeaMariaLeon DeaMariaLeon commented Jul 25, 2023

Towards #37875

Notes:
On the web there are only 3 custom rolling windows: BaseIndexer, FixedForwardWindowIndexer and VariableOffsetWindowIndexer. But there are more of them in the code. Like ExpandingIndexer etc..

Added # doctest: +SKIP to the last line of BaseIndexer because validate_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.

@DeaMariaLeon DeaMariaLeon requested a review from mroeschke as a code owner July 25, 2023 13:56
@DeaMariaLeon DeaMariaLeon added this to the 2.1 milestone Jul 25, 2023
... return start, end
>>> df = pd.DataFrame({"values": range(5)})
>>> indexer = CustomIndexer(window_size=2)
>>> df.rolling(indexer).sum() # doctest: +SKIP
Copy link
Member

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?

Copy link
Member Author

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```

Copy link
Member

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)

@DeaMariaLeon
Copy link
Member Author

/preview

@github-actions
Copy link
Contributor

No preview found for PR #54254. Did the docs build complete?

@DeaMariaLeon
Copy link
Member Author

/preview

@github-actions
Copy link
Contributor

Website preview of this PR available at: https://pandas.pydata.org/preview/54254/

@DeaMariaLeon
Copy link
Member Author

It looks like failing tests are unrelated

@mroeschke mroeschke merged commit e35916d into pandas-dev:main Jul 26, 2023
@mroeschke
Copy link
Member

Thanks @DeaMariaLeon

@DeaMariaLeon DeaMariaLeon deleted the Jul25 branch July 26, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants