Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Intro to Seaborn!
You have completed Intro to Seaborn!
Preview
Make a histogram to find out the distribution of Attack Points. Then use a kernel density estimation plot to find the distribution of Defense Points as a probability curve.
Challenge
- What is the distribution of:
- Attack Points?
- Defense Points?
Solution
sns.histplot(data=monsters, x='Attack_Points', kde=True)
sns.kdeplot(data=monsters, x='Defense_Points', kde=True)
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
quantitative variables,
level and attack points.
0:00
It would be nice to know the distribution
of some variables with the histogram and
0:00
a kernel density estimation.
0:04
So what is the distribution of
attack points and defense points?
0:07
Here's some hints,
use sns.histplot and sns.kdeplot.
0:12
Make a histogram to find out
the distribution of attack points.
0:20
You can also plot a kde curve over
the histogram by setting the kde keyword
0:24
argument to true.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up