Back to Numerical Arrays (NumPy)
np.asarray
Convert the input to an array.
Syntax
np.asarray(a, dtype?)
Description
Convert the input to an array.
Parameters
| Name | Description |
|---|---|
| a | - Input data |
| dtype(optional) | - Optional data type |
Returns
Promise<NDArray>