Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Now that we've completed making plots to analyze our numerical values, let's move on to explore how Attribute, a categorical variable, is related to certain quantitative variables.
Challenge
- For each Attribute, what is the relationship between Attribute and:
- Attack Points?
- Defense Points?
Hint: use sns.stripplot
and sns.swarmplot
.
Solution
sns.stripplot(data=monsters, x='Attributes', y='Attack_Points')
sns.catplot(kind='strip', data=monsters, x='Attributes', y='Attack_Points', aspect=1.5)
sns.stripplot(data=monsters, x='Attack_Points', y='Attributes')
sns.swarmplot(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
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