Section 9 - Seaborn

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

What is the default state of a jointplot?

scatter plot

Gaussian distribution is also called

normal distribution

How to display a matplot in Jupyter Notebook

%matplotlib inline

What is the hue of a pairplot?

A color coordination clarification of a graph Example: if you declare the hue of a pairplot to be "sex", it will color coordinate data sets by sex

What is a rugplot?

A graph that draws a dash mark for every point on the variant distribution

What is a regression plot?

A line graphed (usually on top of another type of graph) that shows the overall trend of the dataset that's being plotted it can be added to a jointplot as kind='reg'

Seaborn

A statistical plotting library with beautiful default styles Designed to work well with pandas dataframe objects

Kernel Density Estimation (KDE)

Displays the density of data in the shape of an oval/cirle, the most common data represented as the darkest in the middle When plotting a graph that is not a traditional line graph, the KDE will display on top of whatever method you use to graph your dataset (such as a bar graph)

What does the pairplot command do?

It plots pairwise relationships across an entire data frame, at least for the numerical columns

What does .jointplot do?

Joins two plots together

When displaying a bar graph, how do you have the graph auto-generate more bars to make the data plot more detailed?

add bins=*x amount of bars* to the plot description

How do you remove the KDE from a graph?

add kde=False to the description of the plot

How to install seaborn in conda

conda install seaborn

What is the palette of a pairplot?

further color specification of a graph Example: palette='coolwarm' will sort data based on cool vs warm colors

How one typically imports seaborn

import seaborn as sns

How do you change the default state of a jointplot?

kind=

Let's say you have a dataset called Tips. One of the columns is titled 'total_bill'. How would you create a Seaborn plot showing that individual column?

sns.distplot(tips['total_bill'])

How do you structure a jointplot?

sns.jointplot(x='plot1',y='plot2',data=blah)

Command to load a dataset into a seaborn plot

sns.load_dataset('insert_dataset_name_here')


Kaugnay na mga set ng pag-aaral

Geography A Level - Migration, Identity and Sovereignty

View Set

Biology Exam 3: Chapters 12-14 Cell Cycle and Genetics

View Set

Chapter 27: Safety, Security, and Emergency Preparedness - ML5

View Set

Chapter 19- Using Securities Markets for Financing and Investing Opportunities

View Set

GEO CHP 17, Geo 101 CH 18, Ch 19 Test*************

View Set