Skip to content
C

Problem 4: Compare Standardization vs Normalization on the Same Data

Easypython

Problem Description

Write a Python program that applies both StandardScaler and MinMaxScaler to the same numeric column, and prints both results side by side for comparison.

Input

A DataFrame with one numeric column.

Output

Two columns showing the standardized and normalized versions of the original data.

Constraints

  • The column will contain at least 4 numeric values.

Example Input

text
{"score": [40, 60, 80, 100]}

Example Output

text
score standardized normalized 0 40 -1.34 0.00 1 60 -0.45 0.33 2 80 0.45 0.67 3 100 1.34 1.00

Concepts Covered

StandardScaler, MinMaxScaler, side-by-side comparison.

Input (stdin)

Output

Run your code to see output here...