The colon used in slicing. x[:, 0] means 2D array of all rows, with column index 0.
x[:, 0]
Example:
import numpy as np x = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) print(x[:, 0]) # output: [1 4 7]