In my Numpy / Pandas lesson I am taught to make data with the following code:
sample_numpy_data = np.array(np.arange(24)).reshape((6,4))
Isn't it redundant to use np.array() on the np.arange() as np.arange() already produces an array?
Why is this necessary? example?
Example found in Lynda course "Pandas for Data Science" Pandas Overview - Operations.