File tree 3 files changed +22
-7
lines changed
3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
92
92
-i " pandas.Series.dt.day_name PR01,PR02" \
93
93
-i " pandas.Series.dt.floor PR01,PR02" \
94
94
-i " pandas.Series.dt.freq GL08" \
95
- -i " pandas.Series.dt.microseconds SA01" \
96
95
-i " pandas.Series.dt.month_name PR01,PR02" \
97
96
-i " pandas.Series.dt.nanoseconds SA01" \
98
97
-i " pandas.Series.dt.normalize PR01" \
@@ -113,12 +112,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
113
112
-i " pandas.Timedelta.max PR02" \
114
113
-i " pandas.Timedelta.min PR02" \
115
114
-i " pandas.Timedelta.resolution PR02" \
116
- -i " pandas.Timedelta.to_numpy PR01" \
117
115
-i " pandas.Timedelta.to_timedelta64 SA01" \
118
116
-i " pandas.Timedelta.total_seconds SA01" \
119
117
-i " pandas.Timedelta.view SA01" \
120
- -i " pandas.TimedeltaIndex.components SA01" \
121
- -i " pandas.TimedeltaIndex.microseconds SA01" \
122
118
-i " pandas.TimedeltaIndex.nanoseconds SA01" \
123
119
-i " pandas.TimedeltaIndex.seconds SA01" \
124
120
-i " pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
Original file line number Diff line number Diff line change @@ -1421,9 +1421,16 @@ cdef class _Timedelta(timedelta):
1421
1421
"""
1422
1422
Convert the Timedelta to a NumPy timedelta64.
1423
1423
1424
- This is an alias method for `Timedelta.to_timedelta64()`. The dtype and
1425
- copy parameters are available here only for compatibility. Their values
1426
- will not affect the return value.
1424
+ This is an alias method for `Timedelta.to_timedelta64()`.
1425
+
1426
+ Parameters
1427
+ ----------
1428
+ dtype : NoneType
1429
+ It is available here only for compatibility. Its value will not
1430
+ affect the return value.
1431
+ copy : bool , default False
1432
+ It is available here only for compatibility. Its value will not
1433
+ affect the return value.
1427
1434
1428
1435
Returns
1429
1436
-------
Original file line number Diff line number Diff line change @@ -876,6 +876,12 @@ def to_pytimedelta(self) -> npt.NDArray[np.object_]:
876
876
microseconds_docstring = textwrap .dedent (
877
877
"""Number of microseconds (>= 0 and less than 1 second) for each element.
878
878
879
+ See Also
880
+ --------
881
+ pd.Timedelta.microseconds : Number of microseconds (>= 0 and less than 1 second).
882
+ pd.Timedelta.to_pytimedelta.microseconds : Number of microseconds (>= 0 and less
883
+ than 1 second) of a datetime.timedelta.
884
+
879
885
Examples
880
886
--------
881
887
For Series:
@@ -955,6 +961,12 @@ def components(self) -> DataFrame:
955
961
-------
956
962
DataFrame
957
963
964
+ See Also
965
+ --------
966
+ TimedeltaIndex.total_seconds : Return total duration expressed in seconds.
967
+ Timedelta.components : Return a components namedtuple-like of a single
968
+ timedelta.
969
+
958
970
Examples
959
971
--------
960
972
>>> tdelta_idx = pd.to_timedelta(["1 day 3 min 2 us 42 ns"])
You can’t perform that action at this time.
0 commit comments