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