Answers for "how to use vstack in numpy"

0

python numpy vstack

>>> a = np.array([[1], [2], [3]])
>>> b = np.array([[2], [3], [4]])
>>> np.vstack((a,b))
array([[1],
       [2],
       [3],
       [2],
       [3],
       [4]])
Posted by: Guest on October-13-2020

Python Answers by Framework

Browse Popular Code Answers by Language