IniziaInizia gratis

Detect skewed variables

We have created a dataset called data for you with three variables: var1, var2 and var3. You will now explore their distributions.

The plt.subplot(...) call before the seaborn function call allows you to plot several subplots in one chart, you do not have to change it.

Libraries seaborn and matplotlib.pyplot have been loaded as sns and plt respectively. Feel free to explore the dataset in the console.

Questo esercizio fa parte del corso

Customer Segmentation in Python

Visualizza il corso

Istruzioni dell'esercizio

  • Plot the distribution of var1.
  • Plot the distribution of var2.
  • Plot the distribution of var3.
  • Show the plot.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Plot distribution of var1
plt.subplot(3, 1, 1); sns.____(data['____'])

# Plot distribution of var2
plt.____(3, 1, 2); sns.____(____)

# Plot distribution of var3
____

# Show the plot
plt.____()
Modifica ed esegui il codice