Introduction

In this tutorial, we want to scale features of a Pandas DataFrame. In order to do this, we use the StandardScaler() class and the MinMaxScaler() class of Scikit-Learn.

Import Libraries

First, we import the following python modules:

import pandas as pd
from sklearn.datasets import fetch_california_housing
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler, MinMaxScaler

You can view this post with the tier: Academy Membership

Join academy now to read the post and get access to the full library of premium posts for academy members only.

Join Academy Already have an account? Sign In