Skip to content

DOC: fix SA01 for pandas.Timestamp.floor #59070

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 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.ctime SA01" \
-i "pandas.Timestamp.date SA01" \
-i "pandas.Timestamp.day GL08" \
-i "pandas.Timestamp.floor SA01" \
-i "pandas.Timestamp.fold GL08" \
-i "pandas.Timestamp.fromordinal SA01" \
-i "pandas.Timestamp.fromtimestamp PR01,SA01" \
Expand Down
6 changes: 6 additions & 0 deletions pandas/_libs/tslibs/nattype.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,12 @@ timedelta}, default 'raise'
------
ValueError if the freq cannot be converted.

See Also
--------
Timestamp.ceil : Round up a Timestamp to the specified resolution.
Timestamp.round : Round a Timestamp to the specified resolution.
Series.dt.floor : Round down the datetime values in a Series.

Notes
-----
If the Timestamp has a timezone, flooring will take place relative to the
Expand Down
6 changes: 6 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,12 @@ timedelta}, default 'raise'
------
ValueError if the freq cannot be converted.

See Also
--------
Timestamp.ceil : Round up a Timestamp to the specified resolution.
Timestamp.round : Round a Timestamp to the specified resolution.
Series.dt.floor : Round down the datetime values in a Series.

Notes
-----
If the Timestamp has a timezone, flooring will take place relative to the
Expand Down
Loading