Problem 4: Scale Data Before Clustering
Easypython
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.