Skip to content
Closed
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: 0 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Series.dt.floor PR01,PR02" \
-i "pandas.Series.dt.freq GL08" \
-i "pandas.Series.dt.month_name PR01,PR02" \
-i "pandas.Series.dt.nanoseconds SA01" \
-i "pandas.Series.dt.normalize PR01" \
-i "pandas.Series.dt.round PR01,PR02" \
-i "pandas.Series.dt.seconds SA01" \
-i "pandas.Series.dt.strftime PR01,PR02" \
-i "pandas.Series.dt.to_period PR01,PR02" \
-i "pandas.Series.dt.total_seconds PR01" \
Expand Down
16 changes: 16 additions & 0 deletions pandas/core/arrays/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,14 @@ def to_pytimedelta(self) -> npt.NDArray[np.object_]:
seconds_docstring = textwrap.dedent(
"""Number of seconds (>= 0 and less than 1 day) for each element.

The dt.seconds attribute in pandas extracts the number of seconds (excluding days)
from a timedelta64[ns] object. It can be used with Series and TimedeltaIndex.

See Also
--------
Series.dt.microseconds : Returns number of microseconds for each element.
Series.dt.nanoseconds : Returns number of nanoseconds for each element.

Examples
--------
For Series:
Expand Down Expand Up @@ -917,6 +925,14 @@ def to_pytimedelta(self) -> npt.NDArray[np.object_]:
nanoseconds_docstring = textwrap.dedent(
"""Number of nanoseconds (>= 0 and less than 1 microsecond) for each element.

The dt.nanoseconds attribute in pandas extracts the number of nanoseconds
from a timedelta64[ns] object. It can be used with Series and TimedeltaIndex.

See Also
--------
Series.dt.seconds : Returns number of seconds for each element.
Series.dt.microseconds : Returns number of microseconds for each element.

Examples
--------
For Series:
Expand Down
Loading