Visualize normalized data
After normalizing your data, you can compare the scaled data to the original data to see the difference. The variables from the last exercise, goals_for and scaled_data are already available to you.
Latihan ini adalah bagian dari kursus
Cluster Analysis in Python
Petunjuk latihan
- Use the
matplotliblibrary to plot the original and scaled data. - Show the legend in the plot.
- Display the plot.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Plot original data
plt.____(____, label='original')
# Plot scaled data
plt.____(____, label='scaled')
# Show the legend in the plot
plt.____()
# Display the plot
plt.____()