Skip to content

Commit

Permalink
DOC: Add SA01 for pandas.Timestamp.asm8 (#58676)
Browse files Browse the repository at this point in the history
* DOC: add SA01 for pandas.Timestamp.asm8

* DOC: remove SA01 for pandas.Timestamp.asm8
  • Loading branch information
tuhinsharma121 committed May 11, 2024
1 parent c3216a2 commit 3ecf177
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Expand Up @@ -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" \
Expand Down
6 changes: 6 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Expand Up @@ -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)
Expand Down

0 comments on commit 3ecf177

Please sign in to comment.