Answers for "np.stack python"

0

np.stack

>>> a = np.array([1, 2, 3])
>>> b = np.array([2, 3, 4])
>>> np.stack((a, b))
array([[1, 2, 3],
       [2, 3, 4]])
Posted by: Guest on July-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language