Skip to content

Commit 058127c

Browse files
DOC: add SA01 for pandas.Timestamp.ceil (#58762)
* DOC: add SA01 for pandas.Timestamp.ceil * DOC: remove SA01 for pandas.Timestamp.ceil
1 parent 692e01a commit 058127c

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
246246
-i "pandas.TimedeltaIndex.nanoseconds SA01" \
247247
-i "pandas.TimedeltaIndex.seconds SA01" \
248248
-i "pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
249-
-i "pandas.Timestamp.ceil SA01" \
250249
-i "pandas.Timestamp.combine PR01,SA01" \
251250
-i "pandas.Timestamp.ctime SA01" \
252251
-i "pandas.Timestamp.date SA01" \

pandas/_libs/tslibs/nattype.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,12 @@ timedelta}, default 'raise'
12221222
------
12231223
ValueError if the freq cannot be converted.
12241224
1225+
See Also
1226+
--------
1227+
Timestamp.floor : Round down a Timestamp to the specified resolution.
1228+
Timestamp.round : Round a Timestamp to the specified resolution.
1229+
Series.dt.ceil : Ceil the datetime values in a Series.
1230+
12251231
Notes
12261232
-----
12271233
If the Timestamp has a timezone, ceiling will take place relative to the

pandas/_libs/tslibs/timestamps.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -2291,6 +2291,12 @@ timedelta}, default 'raise'
22912291
------
22922292
ValueError if the freq cannot be converted.
22932293
2294+
See Also
2295+
--------
2296+
Timestamp.floor : Round down a Timestamp to the specified resolution.
2297+
Timestamp.round : Round a Timestamp to the specified resolution.
2298+
Series.dt.ceil : Ceil the datetime values in a Series.
2299+
22942300
Notes
22952301
-----
22962302
If the Timestamp has a timezone, ceiling will take place relative to the

0 commit comments

Comments
 (0)