Creating Arrays
Most NumPy work starts by creating an ndarray.
np.array([10, 20, 30])
np.arange(0, 12, 3)
np.linspace(0, 1, 5)
np.zeros(4)
np.ones((2, 3))
Choose the constructor that matches the business question: observed values, regular ranges, evenly spaced values, or placeholder arrays.