How can i do indexing of a 2D array column wise. For example-
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14],
[15, 16, 17, 18, 19],
[20, 21, 22, 23, 24],
[25, 26, 27, 28, 29],
[30, 31, 32, 33, 34],
[35, 36, 37, 38, 39],
[40, 41, 42, 43, 44],
[45, 46, 47, 48, 49]])
This is a 2D array. I can access to it column wise by using a[:,0] which will give me the first column. But if I want to read all column at a time and want to pick values for example
[5]
[10][15]
[20][25][37]
then it should pick the values like
20
45, 21
46,22, 33
I know it must be easy. But i am learning the stuff.