Skip to content

DOC: fix the Return type for pandas.Timestamp.asm8 #59200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/nattype.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
--------
Expand Down
Loading