New to python.
Say:
arr2d = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
arr2d[:, :1] gives me
array([[1],
[4],
[7]])
arr2d[:,0] gives me
array([1, 4, 7])
I thought they would produce exactly same thing... I googled, but apparently my English is not good enough to summarize this question effectively.
Can anybody shed some light... Thank you in advance.
