Skip to content

Commit 49cab81

Browse files
committed
Add 'See Also' section for Timedelta.to_timedelta64
1 parent bc9b1c3 commit 49cab81

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
114114
-i "pandas.Timedelta.min PR02" \
115115
-i "pandas.Timedelta.resolution PR02" \
116116
-i "pandas.Timedelta.to_numpy PR01" \
117-
-i "pandas.Timedelta.to_timedelta64 SA01" \
118117
-i "pandas.Timedelta.total_seconds SA01" \
119118
-i "pandas.Timedelta.view SA01" \
120119
-i "pandas.TimedeltaIndex.components SA01" \

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,14 @@ cdef class _Timedelta(timedelta):
14031403
"""
14041404
Return a numpy.timedelta64 object with 'ns' precision.
14051405

1406+
Returns
1407+
-------
1408+
numpy.timedelta64
1409+
1410+
See Also
1411+
--------
1412+
Timedelta.to_numpy : Alias method.
1413+
14061414
Examples
14071415
--------
14081416
>>> td = pd.Timedelta('3D')

0 commit comments

Comments
 (0)