Skip to content

Commit 9541108

Browse files
Merge remote-tracking branch 'upstream/main' into pandas.errors.MergeError
2 parents 00cbae3 + 235e1be commit 9541108

File tree

6 files changed

+38
-5
lines changed

6 files changed

+38
-5
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
105105
-i "pandas.Timedelta.min PR02" \
106106
-i "pandas.Timedelta.resolution PR02" \
107107
-i "pandas.Timedelta.to_timedelta64 SA01" \
108-
-i "pandas.Timedelta.total_seconds SA01" \
109108
-i "pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
110109
-i "pandas.Timestamp.max PR02" \
111110
-i "pandas.Timestamp.min PR02" \
@@ -114,14 +113,12 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
114113
-i "pandas.Timestamp.tzinfo GL08" \
115114
-i "pandas.Timestamp.year GL08" \
116115
-i "pandas.api.types.is_dict_like PR07,SA01" \
117-
-i "pandas.api.types.is_extension_array_dtype SA01" \
118116
-i "pandas.api.types.is_file_like PR07,SA01" \
119117
-i "pandas.api.types.is_float PR01,SA01" \
120118
-i "pandas.api.types.is_float_dtype SA01" \
121119
-i "pandas.api.types.is_hashable PR01,RT03,SA01" \
122120
-i "pandas.api.types.is_int64_dtype SA01" \
123121
-i "pandas.api.types.is_integer PR01,SA01" \
124-
-i "pandas.api.types.is_integer_dtype SA01" \
125122
-i "pandas.api.types.is_interval_dtype SA01" \
126123
-i "pandas.api.types.is_iterator PR07,SA01" \
127124
-i "pandas.api.types.is_list_like SA01" \
@@ -133,7 +130,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
133130
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
134131
-i "pandas.arrays.BooleanArray SA01" \
135132
-i "pandas.arrays.DatetimeArray SA01" \
136-
-i "pandas.arrays.FloatingArray SA01" \
137133
-i "pandas.arrays.IntegerArray SA01" \
138134
-i "pandas.arrays.IntervalArray.left SA01" \
139135
-i "pandas.arrays.IntervalArray.length SA01" \

pandas/_libs/tslibs/nattype.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,14 @@ class NaTType(_NaT):
493493
"""
494494
Total seconds in the duration.
495495
496+
This method calculates the total duration in seconds by combining
497+
the days, seconds, and microseconds of the `Timedelta` object.
498+
499+
See Also
500+
--------
501+
to_timedelta : Convert argument to timedelta.
502+
Timedelta : Represents a duration, the difference between two dates or times.
503+
496504
Examples
497505
--------
498506
>>> td = pd.Timedelta('1min')

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,14 @@ cdef class _Timedelta(timedelta):
11891189
"""
11901190
Total seconds in the duration.
11911191

1192+
This method calculates the total duration in seconds by combining
1193+
the days, seconds, and microseconds of the `Timedelta` object.
1194+
1195+
See Also
1196+
--------
1197+
to_timedelta : Convert argument to timedelta.
1198+
Timedelta : Represents a duration, the difference between two dates or times.
1199+
11921200
Examples
11931201
--------
11941202
>>> td = pd.Timedelta('1min')

pandas/core/arrays/floating.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ class FloatingArray(NumericArray):
9696
-------
9797
FloatingArray
9898
99+
See Also
100+
--------
101+
array : Create an array.
102+
Float32Dtype : Float32 dtype for FloatingArray.
103+
Float64Dtype : Float64 dtype for FloatingArray.
104+
Series : One-dimensional labeled array capable of holding data.
105+
DataFrame : Two-dimensional, size-mutable, potentially heterogeneous tabular data.
106+
99107
Examples
100108
--------
101109
Create an FloatingArray with :func:`pandas.array`:

pandas/core/dtypes/common.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,15 @@ def is_integer_dtype(arr_or_dtype) -> bool:
694694
Whether or not the array or dtype is of an integer dtype and
695695
not an instance of timedelta64.
696696
697+
See Also
698+
--------
699+
api.types.is_integer : Return True if given object is integer.
700+
api.types.is_numeric_dtype : Check whether the provided array or dtype is of a
701+
numeric dtype.
702+
api.types.is_float_dtype : Check whether the provided array or dtype is of a
703+
float dtype.
704+
Int64Dtype : An ExtensionDtype for Int64Dtype integer data.
705+
697706
Examples
698707
--------
699708
>>> from pandas.api.types import is_integer_dtype
@@ -1401,6 +1410,10 @@ def is_extension_array_dtype(arr_or_dtype) -> bool:
14011410
bool
14021411
Whether the `arr_or_dtype` is an extension array type.
14031412
1413+
See Also
1414+
--------
1415+
api.extensions.ExtensionArray : Abstract base class for pandas extension arrays.
1416+
14041417
Notes
14051418
-----
14061419
This checks whether an object implements the pandas extension

web/pandas/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ maintainers:
8989
- phofl
9090
- attack68
9191
- fangchenli
92-
- twoertwein
9392
- lithomas1
9493
- lukemanley
9594
- noatamir
@@ -108,6 +107,7 @@ maintainers:
108107
- wesm
109108
- gfyoung
110109
- mzeitlin11
110+
- twoertwein
111111
workgroups:
112112
coc:
113113
name: Code of Conduct

0 commit comments

Comments
 (0)