Skip to content

details on weekday argument for DateOffset docs #54332

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 9 commits into from
Aug 25, 2023

Conversation

Detoro
Copy link
Contributor

@Detoro Detoro commented Jul 31, 2023

@Detoro Detoro requested a review from MarcoGorelli as a code owner July 31, 2023 22:34
@raj-thapa
Copy link
Contributor

Hey @Detoro . Can you try commenting pre-commit.ci autofix?

@Detoro
Copy link
Contributor Author

Detoro commented Aug 4, 2023

pre-commit.ci autofix

@MarcoGorelli
Copy link
Member

/preview

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

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

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.

thanks for your PR

this addresses part of the issue - the other part is about the link

in See also, could you replace dateutil.relativedelta.relativedelta with https://dateutil.readthedocs.io/en/stable/relativedelta.html please?

thanks

Comment on lines 1376 to 1384
weekday : int {0, 1, ..., 6}, default 0
A specific integer for the day of the week.
- 0 is Monday
- 1 is Tuesday
- 2 is Wednesday
- 3 is Thursday
- 4 is Friday
- 5 is Saturday
- 6 is Sunday.
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't look quite right, you need a blank line before "A specific integer"

image

Copy link

@keelancosgrove keelancosgrove Aug 4, 2023

Choose a reason for hiding this comment

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

Working with @Detoro on this - we'd like to view the built HTML but have been encountering some issues.
Namely, after running python make.py --single pandas.tseries.offsets.DateOffset in the doc directory, we don't see any output in directory reference/api for DateOffset. We're getting this warning from Sphinx:

/mnt/c/Users/batiu/OneDrive/Desktop/pandasContribution/pandas-toro/doc/source/index.rst:31: WARNING: autosummary references excluded document 'pandas.tseries.offsets.DateOffset'. Ignored.

Are we building this class correctly, and if so why is the class's documentation being excluded by "autosummary references"?

Choose a reason for hiding this comment

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

@MarcoGorelli PR is updated, can you take another look? We'll squash the commits as well.

@keelancosgrove
Copy link

thanks for your PR

this addresses part of the issue - the other part is about the link

in See also, could you replace dateutil.relativedelta.relativedelta with https://dateutil.readthedocs.io/en/stable/relativedelta.html please?

thanks

We were planning to do this in a follow up PR. Do you prefer if both parts are done in separate PRs, or a single PR?

@keelancosgrove
Copy link

/preview

@github-actions
Copy link
Contributor

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

@Detoro Detoro requested a review from MarcoGorelli August 11, 2023 13:57
@Detoro
Copy link
Contributor Author

Detoro commented Aug 15, 2023

pre-commit.ci autofix

@keelancosgrove
Copy link

@mroeschke could you take a look?

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.

thanks, this is close

if this doesn't fully close the issue, can you replace closes with towards in the pull request description please?

@@ -1467,6 +1467,27 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
previous midnight.
**kwds
Temporal parameter that add to or replace the offset value.
weekday : int {0, 1, ..., 6}, default 0
Copy link
Member

Choose a reason for hiding this comment

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

can this go before kwds? that should typically be the last argument

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@MarcoGorelli MarcoGorelli added this to the 2.2 milestone Aug 24, 2023
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.

thanks @Detoro , lgtm on green

@Detoro Detoro closed this Aug 25, 2023
@MarcoGorelli
Copy link
Member

why did you close this?

@MarcoGorelli MarcoGorelli reopened this Aug 25, 2023
@MarcoGorelli MarcoGorelli merged commit 99efe62 into pandas-dev:main Aug 25, 2023
@Detoro
Copy link
Contributor Author

Detoro commented Aug 25, 2023

my bad @MarcoGorelli

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.

5 participants