Answers for "numpy copy a array vertical"

0

numpy copy a array vertical

>>> tile(array([1,2,3]), (3, 1))
array([[1, 2, 3],
       [1, 2, 3],
       [1, 2, 3]])
Posted by: Guest on October-02-2020
0

numpy copy a array vertical

>>> tile(array([[1,2,3]]).transpose(), (1, 3))
array([[1, 1, 1],
       [2, 2, 2],
       [3, 3, 3]])
Posted by: Guest on October-02-2020

Python Answers by Framework

Browse Popular Code Answers by Language