Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Cluster Analysis in Python

Cursus bekijken

Oefeninstructies

  • Use the matplotlib library to plot the original and scaled data.
  • Show the legend in the plot.
  • Display the plot.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Plot original data
plt.____(____, label='original')

# Plot scaled data
plt.____(____, label='scaled')

# Show the legend in the plot
plt.____()

# Display the plot
plt.____()
Code bewerken en uitvoeren