Answers for "numpy expand_dims"

0

numpy expand_dims

y = np.expand_dims(x, axis=(2, 0))
>>> y
array([[[1],
        [2]]])
Posted by: Guest on October-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language