pandas.api.types.is_hashable
pandas 3.1.1 · Arrays, scalars, and data types · function
Check whether Python can compute a hash for this value.
Call syntax
pd.api.types.is_hashable(obj, allow_slice=True)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 |
object Provide the pandas object, scalar, or array-like input described in the accepted values. |
allow_slice |
Optional Positional or keyword Default True |
bool |
Returns
bool