slicing ndarrays of 4 dimensions code example Example: numpy how to slice individual columns X = data[:, [1, 9]]