Doubt in two Dimensional Array I try to convert one dimensional array to two dimensional array I got error like below.
Created 2 years ago
37
Views
2
Comments
import numpy as np
arr = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
newarr = arr(4, 3)
print(newarr)
Traceback (most recent call last):
File "./prog.py", line 5, in <module>
TypeError: 'numpy.ndarray' object is not callable
Now only using libraries for array problem. Please do the needful.