First, we create the StandardScaler(...) object. The two parameters set to True—the former stands for mean, the latter stands for standard deviation—indicate that we want the model to standardize our features using Z-score: , where is the ith observation of the f feature, μf is the mean of all the observations in the f feature, and σf is the standard deviation of all the observations in the f feature.
Next, we .fit(...) the data using StandardScaler(...). Note that we do not standardize the first feature as it is actually our ...