text_plain_output_1.png
from sklearn.preprocessing import StandardScaler

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

data = pd.read_csv('../input/diabetes.csv')

y = data['Outcome']
feature_data = data.drop('Outcome', axis=1)

scaled_features = StandardScaler().fit_transform(feature_data.values)
scaled_data = pd.DataFrame(scaled_features, index=feature_data.index, columns=feature_data.columns)

train_scaled = pd.concat([scaled_data, y], axis=1)
train_scaled.head()