pandas.api.types.is_number
pandas 3.1.1 · Arrays, scalars, and data types · function
Check whether a scalar is a numeric object.
Call syntax
pd.api.types.is_number(obj)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
obj |
Required Positional or keyword |
any type Provide the pandas object, scalar, or array-like input described in the accepted values. |
Returns
bool