2 points np.eye(3) np.array([(1,0,0),(0,1,0),(0,0,1)]) np.array([[1,0,0],[0,1,0],[0,0,1]]) Option (2) is not the same as others since a NumPy with tuple rows is immutable code example
Example: how to import numpy array in python
>>> import numpy as np
>>> a = np.array([0, 1, 2, 3])
>>> a
array([0, 1, 2, 3])