np.reshae code example
Example 1: reshape (n ) to (n 1)
'''
This code is contributed by :
Tanishq Vyas (github : https://github.com/tanishqvyas )
'''
actual = actual.reshape((actual.shape[0], 1))
Example 2: Reshaping arrays python numpy
>>> np.reshape(a, (3,-1)) # the unspecified value is inferred to be 2
array([[1, 2],
[3, 4],
[5, 6]])