Reshape a NumPy Array
Author: Al-mamun Sarkar
Date: 2020-03-31 19:30:51
Reshape a NumPy Array. The following shows how to reshape a NumPy Array of the Python NumPy module.
Code:
a.reshape(6,2)
Output:
array([[ 9., 9.],
[ 6., 5.],
[ 5., 5.],
[ 3., 5.],
[ 3., 0.],
[ 1., 2.]])