x[0][:, mask].shape # (10, 3)
That's happen [:, mask] performs standard boolean slicing, selecting 3 out of the 5 columns, resulting in a shape of (10, 3)