numpy array slicing 2d code example Example: numpy how to slice individual columns X = data[:, [1, 9]]