Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
Now I'll challenge you to make a box plot and a violin plot!
Challenge
- For each Attribute, what is the distribution of:
- Attack Points?
- Defense Points?
Solution
sns.boxplot(data=monsters, x='Attack_Points', y='Attributes')
sns.violinplot(data=monsters, x='Attack_Points', y='Attributes')
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
There are two types of categorical
distribution plots that we've
0:00
learned: boxplots and violin plots.
0:04
In this challenge,
let's make some boxplots.
0:07
For each attribute,
0:10
what is the distribution of
the attack points and defense points?
0:12
Hint: use sns.boxplot.
0:17
Remember that you can adjust
the readability of the attributes
0:21
labels by plotting them along the y axis.
0:25
Pause me and try it out.
0:28
And when you're done,
I'll catch you on the other side.
0:30
How did it go?
0:35
Here are my solutions,
sns.boxplot(data=monsters,
0:36
x='Attack_Points', and
0:45
y='attributes').
0:50
And for defense points,
I'll copy and paste this cell and
1:00
change my x axis label to Defense_Points.
1:06
Nice.
1:13
We are nearly done with
all of our challenges.
1:15
Great job.
1:18
In the next video, we will go over
categorical estimation plots.
1:19
I'll catch you there!
1:24
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