np_array
Convert a Python list into a NumPy array, optionally specifying the data type for numerical operations.
Instructions
Create a NumPy array from a list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | A Python list containing the array elements. | |
| dtype | No | The data type of the array (default: "float64"). Common values: "int32", "int64", "float32", "float64", "complex128". | float64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |