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

48779-doc-MonthEnd #49958

Merged
merged 3 commits into from
Nov 30, 2022
Merged

Conversation

natmokval
Copy link
Contributor

I checked that build of documentation shows the new description.

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Nice, thanks for working on this!

First, can you check the docstring guide please https://pandas.pydata.org/docs/development/contributing_docstring.html ? Looks like there's a docstring validation error https://github.com/pandas-dev/pandas/actions/runs/3572834601/jobs/6006181203

It might also be good to have an example which uses n=0?

@MarcoGorelli MarcoGorelli added this to the 2.0 milestone Nov 29, 2022
@natmokval
Copy link
Contributor Author

Thank you @MarcoGorelli, for your comments and hints. I corrected my docstring and added an example, which uses n=0

Unfortunately, my docker environment is broken by absence of visioner.py and I can not validate my changes locally.
If I am not mistaken, visioner.py is missing after recent commit: BLD: use nonvendor versioneer (#49924)

@MarcoGorelli
Copy link
Member

thanks for updating!

could you try updating your environment? versioneer was added to the environment.yml file in that PR. I don't know about how it works in the Docker container, but for me mamba env update -n pandas-dev --file environment.yml worked

@WillAyd
Copy link
Member

WillAyd commented Nov 29, 2022

Assuming you are using the Dockerfile in this repo, a force rebuild of the image should pick up the versioneer dependency

@natmokval
Copy link
Contributor Author

Assuming you are using the Dockerfile in this repo, a force rebuild of the image should pick up the versioneer dependency

Thank you @WillAyd, I fixed my problem with docker image.

@natmokval
Copy link
Contributor Author

could you try updating your environment? versioneer was added to the environment.yml file in that PR. I don't know about how it works in the Docker container, but for me mamba env update -n pandas-dev --file environment.yml worked

Thank you, @MarcoGorelli, my environment works well now. I fixed errors in docs for MonthEnd and added an example for n=0. Docstring validation also requested me to add See Also section. I added the reference to DateOffset.

I noticed one check during CI failed, but I assume it was caused by timeout and not by my changes.

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @natmokval !

If there's other DateOffsets where similar confusion can arise, PRs to add examples / clarification there too would be welcome

Regarding the "see also" note - this isn't strictly necessary to pass CI, as the codes in

$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX04,GL01,GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,PR03,PR04,PR05,PR06,PR08,PR09,PR10,RT01,RT04,RT05,SA02,SA03,SA04,SS01,SS02,SS03,SS04,SS05,SS06

are currently checked - but it's nice to have it anyway, thanks!

@MarcoGorelli MarcoGorelli merged commit 13f758c into pandas-dev:main Nov 30, 2022
@natmokval
Copy link
Contributor Author

If there's other DateOffsets where similar confusion can arise, PRs to add examples / clarification there too would be welcome

Certainly. Checking other DateOffsets looks like a good idea. I will look into it.

Regarding the "see also" note - this isn't strictly necessary to pass CI, as the codes in

$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX04,GL01,GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,PR03,PR04,PR05,PR06,PR08,PR09,PR10,RT01,RT04,RT05,SA02,SA03,SA04,SS01,SS02,SS03,SS04,SS05,SS06

are currently checked - but it's nice to have it anyway, thanks!

I will use the same list of errors locally the next time.

Thank you @MarcoGorelli, for your guidance and support. It makes contributing to pandas pleasant and not too complicated.

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.

BUG: pd.offsets.MonthEnd() delevers wrong month
3 participants