Learning Scientific Programming with Python (2nd edition)
Q6.1.3: Creating a NumPy array #2
Question Q6.1.3
What is the difference, if any, between the following statements:
>>> a = np.array([0,0,0])
>>> a = np.array([[0,0,0]])
Learning Scientific Programming with Python (2nd edition)
What is the difference, if any, between the following statements:
>>> a = np.array([0,0,0])
>>> a = np.array([[0,0,0]])