Preview:
import pandas as pd
from sklearn.preprocessing import MinMaxScaler

data = {'Age': [20, 25, 30, 35, 40],
 'Salary': [20000, 25000, 30000, 35000, 40000]}

df = pd.DataFrame(data)

scaler = MinMaxScaler()


df[['Age_minmax', 'Salary_minmax']] = scaler.fit_transform(df[['Age', 'Salary']])
print(df)
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter