API Reference
Convert a scalar into a NumPy scalar.
x (Union[int, float, complex, Number, number]) – Scalar value.
Union
int
float
complex
Number
number
dtype (Union[dtype, None, type, _SupportsDType[dtype], str, Tuple[Any, int], Tuple[Any, Union[SupportsIndex, Sequence[SupportsIndex]]], List[Any], _DTypeDict, Tuple[Any, Any]]) – Data type of the scalar.
dtype
None
type
_SupportsDType
str
Tuple
Any
SupportsIndex
Sequence
List
_DTypeDict
generic