Skip to content

Commit 07710a1

Browse files
DOC: add PR07,SA01 for pandas.api.types.infer_dtype (#58769)
1 parent b804514 commit 07710a1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
317317
-i "pandas.api.extensions.ExtensionArray.view SA01" \
318318
-i "pandas.api.indexers.VariableOffsetWindowIndexer PR01,SA01" \
319319
-i "pandas.api.interchange.from_dataframe RT03,SA01" \
320-
-i "pandas.api.types.infer_dtype PR07,SA01" \
321320
-i "pandas.api.types.is_any_real_numeric_dtype SA01" \
322321
-i "pandas.api.types.is_bool PR01,SA01" \
323322
-i "pandas.api.types.is_bool_dtype SA01" \

pandas/_libs/lib.pyx

+9
Original file line numberDiff line numberDiff line change
@@ -1449,6 +1449,7 @@ def infer_dtype(value: object, skipna: bool = True) -> str:
14491449
Parameters
14501450
----------
14511451
value : scalar, list, ndarray, or pandas type
1452+
The input data to infer the dtype.
14521453
skipna : bool, default True
14531454
Ignore NaN values when inferring the type.
14541455

@@ -1483,6 +1484,14 @@ def infer_dtype(value: object, skipna: bool = True) -> str:
14831484
TypeError
14841485
If ndarray-like but cannot infer the dtype
14851486

1487+
See Also
1488+
--------
1489+
api.types.is_scalar : Check if the input is a scalar.
1490+
api.types.is_list_like : Check if the input is list-like.
1491+
api.types.is_integer : Check if the input is an integer.
1492+
api.types.is_float : Check if the input is a float.
1493+
api.types.is_bool : Check if the input is a boolean.
1494+
14861495
Notes
14871496
-----
14881497
- 'mixed' is the catchall for anything that is not otherwise

0 commit comments

Comments
 (0)