From 3ecf1775cbf2b995f9ad1c08e1e167c0c0d47363 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Sat, 11 May 2024 23:43:20 +0530 Subject: [PATCH] DOC: Add SA01 for pandas.Timestamp.asm8 (#58676) * DOC: add SA01 for pandas.Timestamp.asm8 * DOC: remove SA01 for pandas.Timestamp.asm8 --- ci/code_checks.sh | 1 - pandas/_libs/tslibs/timestamps.pyx | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2224ea0e9aa96..a7fd196647619 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -269,7 +269,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.asm8 SA01" \ -i "pandas.Timestamp.astimezone SA01" \ -i "pandas.Timestamp.ceil SA01" \ -i "pandas.Timestamp.combine PR01,SA01" \ diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 0010497425c02..47a0dddb5ed15 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1150,6 +1150,12 @@ cdef class _Timestamp(ABCTimestamp): """ Return numpy datetime64 format in nanoseconds. + See Also + -------- + numpy.datetime64 : Numpy datatype for dates and times with high precision. + Timestamp.to_numpy : Convert the Timestamp to a NumPy datetime64. + to_datetime : Convert argument to datetime. + Examples -------- >>> ts = pd.Timestamp(2020, 3, 14, 15)