Skip to content

Commit a06b3d1

Browse files
DOC: Add SA01 ES01 for pandas.Series.dt.components (#58751)
* DOC: add SA01 ES01 for pandas.Series.dt.components * DOC: remove SA01 ES01 for pandas.Series.dt.components
1 parent 4fb94bb commit a06b3d1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
148148
-i "pandas.Series.cat.set_categories PR01,PR02" \
149149
-i "pandas.Series.dt.as_unit PR01,PR02" \
150150
-i "pandas.Series.dt.ceil PR01,PR02" \
151-
-i "pandas.Series.dt.components SA01" \
152151
-i "pandas.Series.dt.day_name PR01,PR02" \
153152
-i "pandas.Series.dt.floor PR01,PR02" \
154153
-i "pandas.Series.dt.freq GL08" \

pandas/core/indexes/accessors.py

+10
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,20 @@ def components(self) -> DataFrame:
489489
"""
490490
Return a Dataframe of the components of the Timedeltas.
491491
492+
Each row of the DataFrame corresponds to a Timedelta in the original
493+
Series and contains the individual components (days, hours, minutes,
494+
seconds, milliseconds, microseconds, nanoseconds) of the Timedelta.
495+
492496
Returns
493497
-------
494498
DataFrame
495499
500+
See Also
501+
--------
502+
TimedeltaIndex.components : Return a DataFrame of the individual resolution
503+
components of the Timedeltas.
504+
Series.dt.total_seconds : Return the total number of seconds in the duration.
505+
496506
Examples
497507
--------
498508
>>> s = pd.Series(pd.to_timedelta(np.arange(5), unit="s"))

0 commit comments

Comments
 (0)