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