From 0e70f586e8947749b98726ab7974b42c51b12b2c Mon Sep 17 00:00:00 2001 From: Anurag Varma Date: Sun, 7 Jul 2024 20:40:09 +0530 Subject: [PATCH] updated documentation for asm8 return type --- pandas/_libs/tslibs/nattype.pyx | 2 +- pandas/_libs/tslibs/timestamps.pyx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index c1f2341328570..4544cf56a11ec 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -1516,7 +1516,7 @@ default 'raise' See Also -------- - Timestamp.asm8 : Return numpy datetime64 format in nanoseconds. + Timestamp.asm8 : Return numpy datetime64 format with same precision. Timestamp.to_pydatetime : Convert Timestamp object to a native Python datetime object. to_timedelta : Convert argument into timedelta object, diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index c4bd9e1b47bbe..cd749effd1a5f 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1139,7 +1139,7 @@ cdef class _Timestamp(ABCTimestamp): See Also -------- - Timestamp.asm8 : Return numpy datetime64 format in nanoseconds. + Timestamp.asm8 : Return numpy datetime64 format with same precision. Timestamp.to_pydatetime : Convert Timestamp object to a native Python datetime object. to_timedelta : Convert argument into timedelta object, @@ -1170,7 +1170,7 @@ cdef class _Timestamp(ABCTimestamp): @property def asm8(self) -> np.datetime64: """ - Return numpy datetime64 format in nanoseconds. + Return numpy datetime64 format with same precision. See Also --------