GUVI
Back

Doubt in two Dimensional Array  I try to convert one dimensional array to two dimensional array I  got error like below.

16 Views
2 Comments

GokilaE
GokilaE 2 weeks ago
GokilaE
@GokilaEProfile is locked. Login

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.

Comments (2)
Please login to comment.
 
Habitate.io