From f32f9138d882bb511152b163d88bdc7fef611a93 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 11 May 2024 20:58:16 +0530 Subject: [PATCH 1/2] DOC: add SA01 for pandas.Timestamp.asm8 --- pandas/_libs/tslibs/timestamps.pyx | 6 ++++++ 1 file changed, 6 insertions(+) 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) From 78a642abf30ac531816c84c35daa7b641ce00746 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 11 May 2024 20:58:34 +0530 Subject: [PATCH 2/2] DOC: remove SA01 for pandas.Timestamp.asm8 --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b3d6c5156c54d..4b7d241f38e29 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -274,7 +274,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" \