I have a problem to split array into array, here the source code and the output,
import numpy as np
s = np.array([[100], [200], [300], [400], [500]])
mean = np.mean(s)
stdev = s.std()
for i in range(len(s)):
z = ((s[i]-mean)/stdev)
print z
out :
[-1.41421356]
[-0.70710678]
[ 0.]
[ 0.70710678]
[ 1.41421356]
I want the output like this :
[[-1.41421356]
[-0.70710678]
[ 0.]
[ 0.70710678]
[ 1.41421356]]