numpy array 5b 1 5d

Solutions on MaxInterview for numpy array 5b 1 5d by the best coders in the world

showing results for - "numpy array 5b 1 5d"
Glen
20 Feb 2016
1print(b)
2>>array([[ 0,  1,  2,  3],
3       [10, 11, 12, 13],
4       [20, 21, 22, 23],
5       [30, 31, 32, 33],
6       [40, 41, 42, 43]])
7
8print(b[-1])       # the last row. Equivalent to b[-1,:]
9>>array([40, 41, 42, 43])
10