pandas.api.types.is_scalar

pandas 3.1.1 · Index objects · function

Check whether a value is acceptable as a single scalar rather than an array of values.

Call syntax

pd.api.types.is_scalar(val)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
val Required
Positional or keyword
object

Returns

bool