Skip to content

Commit

Permalink
DOC: add SA01 for pandas.Timestamp.ceil (#58762)
Browse files Browse the repository at this point in the history
* DOC: add SA01 for pandas.Timestamp.ceil

* DOC: remove SA01 for pandas.Timestamp.ceil
  • Loading branch information
tuhinsharma121 committed May 18, 2024
1 parent 692e01a commit 058127c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.TimedeltaIndex.nanoseconds SA01" \
-i "pandas.TimedeltaIndex.seconds SA01" \
-i "pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
-i "pandas.Timestamp.ceil SA01" \
-i "pandas.Timestamp.combine PR01,SA01" \
-i "pandas.Timestamp.ctime SA01" \
-i "pandas.Timestamp.date 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 @@ -1222,6 +1222,12 @@ timedelta}, default 'raise'
------
ValueError if the freq cannot be converted.
See Also
--------
Timestamp.floor : Round down a Timestamp to the specified resolution.
Timestamp.round : Round a Timestamp to the specified resolution.
Series.dt.ceil : Ceil the datetime values in a Series.
Notes
-----
If the Timestamp has a timezone, ceiling 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 @@ -2291,6 +2291,12 @@ timedelta}, default 'raise'
------
ValueError if the freq cannot be converted.
See Also
--------
Timestamp.floor : Round down a Timestamp to the specified resolution.
Timestamp.round : Round a Timestamp to the specified resolution.
Series.dt.ceil : Ceil the datetime values in a Series.
Notes
-----
If the Timestamp has a timezone, ceiling will take place relative to the
Expand Down

0 comments on commit 058127c

Please sign in to comment.