NumPy Creating Arrays - W3Schools
www.w3schools.com › numpy_creating_arraysNumPy is used to work with arrays. The array object in NumPy is called ndarray. We can create a NumPy ndarray object by using the array () function. Example import numpy as np arr = np.array ( [1, 2, 3, 4, 5]) print(arr) print(type(arr)) Try it Yourself » type (): This built-in Python function tells us the type of the object passed to it.
numpy.array — NumPy v1.23 Manual
numpy.org › reference › generatednumpy.array(object, dtype=None, *, copy=True, order='K', subok=False, ndmin=0, like=None) #. Create an array. An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0-dimensional array containing object is returned.