How to do it...

The following steps walk through validating that our array has been normalized.

  1. Execute the following step to print the mean and standard deviation of array inputs:
print('standard deviation')
print(round(X[:,0].std(axis=0),0))
print('mean')
print(round(X[:,0].mean(axis=0),0))
  1. Execute the following script to combine height, weight, and gender into one array, data_array:
data_array = np.column_stack((X[:,0], X[:,1],y))