Skip to content

Commit fe785cc

Browse files
DOC: fix SA01 for pandas.Timestamp.floor (#59070)
* DOC: fix SA01 for pandas.Timestamp.floor * DOC: fix SA01 for pandas.Timestamp.floor
1 parent a5e812d commit fe785cc

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Diff for: ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
231231
-i "pandas.Timestamp.ctime SA01" \
232232
-i "pandas.Timestamp.date SA01" \
233233
-i "pandas.Timestamp.day GL08" \
234-
-i "pandas.Timestamp.floor SA01" \
235234
-i "pandas.Timestamp.fold GL08" \
236235
-i "pandas.Timestamp.fromordinal SA01" \
237236
-i "pandas.Timestamp.fromtimestamp PR01,SA01" \

Diff for: pandas/_libs/tslibs/nattype.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,12 @@ timedelta}, default 'raise'
11391139
------
11401140
ValueError if the freq cannot be converted.
11411141
1142+
See Also
1143+
--------
1144+
Timestamp.ceil : Round up a Timestamp to the specified resolution.
1145+
Timestamp.round : Round a Timestamp to the specified resolution.
1146+
Series.dt.floor : Round down the datetime values in a Series.
1147+
11421148
Notes
11431149
-----
11441150
If the Timestamp has a timezone, flooring will take place relative to the

Diff for: pandas/_libs/tslibs/timestamps.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -2207,6 +2207,12 @@ timedelta}, default 'raise'
22072207
------
22082208
ValueError if the freq cannot be converted.
22092209
2210+
See Also
2211+
--------
2212+
Timestamp.ceil : Round up a Timestamp to the specified resolution.
2213+
Timestamp.round : Round a Timestamp to the specified resolution.
2214+
Series.dt.floor : Round down the datetime values in a Series.
2215+
22102216
Notes
22112217
-----
22122218
If the Timestamp has a timezone, flooring will take place relative to the

0 commit comments

Comments
 (0)