I'm a novice, so this question may be somewhat obvious for someone.
import numpy as np
print("array")
array = np.arange(8)
matrix = np.array.reshape(2,4)
print(matrix)
The result is this.
array
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-88e5e9409344> in <module>
2 print("array")
3 array = np.arange(8)
----> 4 matrix = np.array.reshape(2,4)
5 print(matrix)
AttributeError: 'builtin_function_or_method' object has no attribute 'reshape'
I don't know why it does not work.