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
To get started with our project, we will have to import two libraries: Seaborn and Pandas. Then we will set the theme for the plots.
Importing the libraries
import seaborn as sns
import pandas as pd
Setting the theme
sns.set_theme()
calls the default values of:
sns.set_theme(context='notebook', style='darkgrid', palette='deep', font_scale=1)
The context can be set as paper
, notebook
, talk
, or poster
.
The theme can be set as darkgrid
, whitegrid
, dark
, white
, or ticks
.
The palette can be set as deep
, muted
, bright
, pastel
, dark
, or colorblind
.
The font scale can be a float greater or less than 1 (eg. 1.5 or .75) to make the font bigger or smaller.
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