Login using Social Account
     Continue with GoogleLogin using your credentials
Let's standardize our dataset using the StandardScaler
class from the preprocessing
submodule of sklearn
.
Refer to StandardScaler documentation for further details about the method.
Import StandardScaler
from sklearn.preprocessing
.
Create an object named scaler
of the class StandardScaler
.
Call the fit_transform()
method on the object scaler
and provide housing_num
as the dataset. Store the output in a variable named scaled_features
.
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...