numpy copy a array vertical

Solutions on MaxInterview for numpy copy a array vertical by the best coders in the world

showing results for - "numpy copy a array vertical"
Michela
29 Jan 2017
1>>> tile(array([1,2,3]), (3, 1))
2array([[1, 2, 3],
3       [1, 2, 3],
4       [1, 2, 3]])
5
Enora
24 Sep 2017
1>>> tile(array([[1,2,3]]).transpose(), (1, 3))
2array([[1, 1, 1],
3       [2, 2, 2],
4       [3, 3, 3]])
5