Course Content
ML Introduction with scikit-learn
ML Introduction with scikit-learn
Scale the Features
In this challenge, you need to scale the features using StandardScaler
. The data is a good old Penguins dataset (encoded and with no missing values).
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/a65bbc96-309e-4df9-a790-a1eb8c815a1c/penguins_imputed_encoded.csv') print(df)
Here is a little reminder of StandardScaler
class.
Task
- Import the
StandardScaler
class - Initialize a
StandardScaler
object. - Fit and transform the
X
using that object.
Thanks for your feedback!
Scale the Features
In this challenge, you need to scale the features using StandardScaler
. The data is a good old Penguins dataset (encoded and with no missing values).
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/a65bbc96-309e-4df9-a790-a1eb8c815a1c/penguins_imputed_encoded.csv') print(df)
Here is a little reminder of StandardScaler
class.
Task
- Import the
StandardScaler
class - Initialize a
StandardScaler
object. - Fit and transform the
X
using that object.
Thanks for your feedback!
Scale the Features
In this challenge, you need to scale the features using StandardScaler
. The data is a good old Penguins dataset (encoded and with no missing values).
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/a65bbc96-309e-4df9-a790-a1eb8c815a1c/penguins_imputed_encoded.csv') print(df)
Here is a little reminder of StandardScaler
class.
Task
- Import the
StandardScaler
class - Initialize a
StandardScaler
object. - Fit and transform the
X
using that object.
Thanks for your feedback!
In this challenge, you need to scale the features using StandardScaler
. The data is a good old Penguins dataset (encoded and with no missing values).
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/a65bbc96-309e-4df9-a790-a1eb8c815a1c/penguins_imputed_encoded.csv') print(df)
Here is a little reminder of StandardScaler
class.
Task
- Import the
StandardScaler
class - Initialize a
StandardScaler
object. - Fit and transform the
X
using that object.