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
.
This exercise is part of the course
Exploratory Data Analysis in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Create a bar plot of salary versus company size, factoring in employment status
sns.____(data=____, x="____", y="____", hue="____")
plt.show()