I am trying to calculate normalized scores for my dataset using mean normalization. When I write (X - np.mean(X))/np.std(X), it gives me different score than doing ((X - X.mean())/X.std().
Problem seems to be coming from calculation of standard deviation. X.std() returns one values for standard deviation and np.std() returns different values for standardization. Why is this happening?