IniziaInizia gratis

Choosing a hypothesis

You've seen how visualizations can be used to generate hypotheses, making them a crucial part of exploratory data analysis!

In this exercise, you'll generate a bar plot to inspect how salaries differ based on company size and employment status. For reference, there are four values:

Value Meaning
CT Contractor
FL Freelance
PT Part-time
FT Full-time

pandas has been imported as pd, matplotlib.pyplot as plt, seaborn as sns, and the salaries dataset as a pandas DataFrame called salaries.

Questo esercizio fa parte del corso

Exploratory Data Analysis in Python

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Create a bar plot of salary versus company size, factoring in employment status
sns.____(data=____, x="____", y="____", hue="____")
plt.show()
Modifica ed esegui il codice