Improving Your Data Visualizations in Python
Nick Strayer
Instructor
Values generally higher?
Distribution of values wider? Narrower?
Crucial for representing your data
pollution_nov = pollution[pollution.month == 10]
sns.kdeplot(pollution_nov[pollution_nov.city == 'Denver'].O3, color = 'red') sns.kdeplot(pollution_nov[pollution_nov.city != 'Denver'].O3)
# Enable rugplot
sns.kdeplot(pollution_nov[pollution_nov.city == 'Denver'].O3, color='red')
sns.rugplot(pollution_nov[pollution_nov.city == 'Denver'].O3, color='red')
sns.kdeplot(pollution_nov[pollution_nov.city != 'Denver'].O3)
pollution_nov = pollution[pollution.month == 10]
sns.swarmplot(y="city", x="O3", data=pollution_nov, size=4)
plt.xlabel("Ozone (O3)")
Improving Your Data Visualizations in Python