diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f34f0690196ed..53790ddb73a38 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -281,7 +281,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.as_unit SA01" \ -i "pandas.Timestamp.asm8 SA01" \ -i "pandas.Timestamp.astimezone SA01" \ -i "pandas.Timestamp.ceil SA01" \ diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 0108fc8fb7eed..7da50ba818272 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -1383,6 +1383,14 @@ default 'raise' ------- Timestamp + See Also + -------- + Timestamp.asm8 : Return numpy datetime64 format in nanoseconds. + Timestamp.to_pydatetime : Convert Timestamp object to a native + Python datetime object. + to_timedelta : Convert argument into timedelta object, + which can represent differences in times. + Examples -------- >>> ts = pd.Timestamp('2023-01-01 00:00:00.01') diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index c1b615839c8cc..c24cc91f56bc3 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1115,6 +1115,14 @@ cdef class _Timestamp(ABCTimestamp): ------- Timestamp + See Also + -------- + Timestamp.asm8 : Return numpy datetime64 format in nanoseconds. + Timestamp.to_pydatetime : Convert Timestamp object to a native + Python datetime object. + to_timedelta : Convert argument into timedelta object, + which can represent differences in times. + Examples -------- >>> ts = pd.Timestamp('2023-01-01 00:00:00.01')