normalize column pandas

import pandas as pd
from sklearn import preprocessing

x = df.values #returns a numpy array
min_max_scaler = preprocessing.MinMaxScaler()
x_scaled = min_max_scaler.fit_transform(x)
df = pd.DataFrame(x_scaled)

Here is what the above code is Doing:
1. We’re creating a MinMaxScaler object.
2. We’re using the fit_transform method to scale our data.
3. We’re creating a new DataFrame with the scaled data.