1>>> np.repeat(3, 4)
2array([3, 3, 3, 3])
3>>> x = np.array([[1,2],[3,4]])
4>>> np.repeat(x, 2)
5array([1, 1, 2, 2, 3, 3, 4, 4])
6>>> np.repeat(x, 3, axis=1)
7array([[1, 1, 1, 2, 2, 2],
8 [3, 3, 3, 4, 4, 4]])
9>>> np.repeat(x, [1, 2], axis=0)
10array([[1, 2],
11 [3, 4],
12 [3, 4]])
13