Skip to content
CampusEduX

Problem 4: Scale Data Before Clustering

Easypython
Learn the Concept: Clustering

Problem Description

Write a Python program that scales a dataset with two features of very different ranges using StandardScaler, in preparation for a future clustering step (to be covered in the upcoming K-Means topic).

Input

A dataset with two numeric features of very different scales.

Output

The scaled dataset.

Constraints

  • None specific.

Example Input

text
{"age": [25,30,60,65], "salary": [30000,32000,90000,95000]}

Example Output

text
(Scaled values with both features on a comparable range)

Concepts Covered

StandardScaler, preparing data for clustering.

Related Problems

  • Problem 1: Visualize Unlabeled Data
    Easy · python
    Solve Problem
  • Problem 2: Calculate Pairwise Distances
    Easy · python
    Solve Problem
  • Problem 3: Manually Group Points by a Distance Threshold
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...