Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Exploratory Data Analysis in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Create a bar plot of salary versus company size, factoring in employment status
sns.____(data=____, x="____", y="____", hue="____")
plt.show()
Code bewerken en uitvoeren