pandas.api.types.infer_dtype
pandas 3.1.1 · Arrays, scalars, and data types · function
Inspect values and classify their apparent type, such as integer, string or mixed.
Call syntax
pd.api.types.infer_dtype(value, skipna=True)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
value |
Required Positional or keyword |
list, ndarray, or pandas type Provide the value used for the documented operation, such as a replacement or a test point. |
skipna |
Optional Positional or keyword Default True |
bool Choose whether to exclude missing values during the calculation. |
Returns
- unknown-array