NumPy - Create Array (np.array) with Examples
The np.array() function converts Python sequences into NumPy arrays. The simplest case takes a flat list:
The np.array() function converts Python sequences into NumPy arrays. The simplest case takes a flat list: