display array of odd rows and even columns in numpy

Solutions on MaxInterview for display array of odd rows and even columns in numpy by the best coders in the world

showing results for - "display array of odd rows and even columns in numpy"
Mathias
18 Aug 2019
1>>> x[:, 1::2]
2array([[ 2,  4],
3       [ 7,  9],
4       [12, 14],
5       [17, 19]])