Skip to content

Commit 1429727

Browse files
authored
DOC: fix the Return type for pandas.Timestamp.asm8 (#59200)
updated documentation for asm8 return type
1 parent aa6d611 commit 1429727

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/_libs/tslibs/nattype.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ default 'raise'
15161516

15171517
See Also
15181518
--------
1519-
Timestamp.asm8 : Return numpy datetime64 format in nanoseconds.
1519+
Timestamp.asm8 : Return numpy datetime64 format with same precision.
15201520
Timestamp.to_pydatetime : Convert Timestamp object to a native
15211521
Python datetime object.
15221522
to_timedelta : Convert argument into timedelta object,

pandas/_libs/tslibs/timestamps.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ cdef class _Timestamp(ABCTimestamp):
11391139
11401140
See Also
11411141
--------
1142-
Timestamp.asm8 : Return numpy datetime64 format in nanoseconds.
1142+
Timestamp.asm8 : Return numpy datetime64 format with same precision.
11431143
Timestamp.to_pydatetime : Convert Timestamp object to a native
11441144
Python datetime object.
11451145
to_timedelta : Convert argument into timedelta object,
@@ -1170,7 +1170,7 @@ cdef class _Timestamp(ABCTimestamp):
11701170
@property
11711171
def asm8(self) -> np.datetime64:
11721172
"""
1173-
Return numpy datetime64 format in nanoseconds.
1173+
Return numpy datetime64 format with same precision.
11741174

11751175
See Also
11761176
--------

0 commit comments

Comments
 (0)