can we slice any number on n dimendsion in pyhton? code example
Example 1: numpy how to slice individual columns
X = data[:, [1, 9]]
Example 2: how to get last dimension of an array python
slice = myarray[:,:,i]
X = data[:, [1, 9]]
slice = myarray[:,:,i]