Source Code:
(back to article)
import numpy as np a = np.array([1, 2, 3, 4, 5, 6]) b = np.reshape(a, (2, 3)) print(b)
Result:
Report an issue