Seaborn

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Grids are general types of plots that allow you to map plot types to _______ and ______ of a grid, this helps you create__________ separated by ___________

rows and columns similar plots features.

What does rugplot do?

rugplots are actually a very simple concept, they just draw a dash mark for every point on a univariate distribution. They are the building block of a KDE plot:

boxplot

sns.boxplot(data=tips,palette='rainbow',orient='h')

#What changes the color is heatmap?

cmap

#Why is the linecolor and linewidth important when we are dealing with heatmaps?

#They give us space to see

Pair Grid vs pairplot

The difference between pairplot and PairGrid is u have control when you are dealing with PairGrid

is rugplot univarient?

Yes

Matrix plots allow you to plot data as _______and can also be used to indicate ___________

color-encoded matrices clusters within the data

If we are dealing with univarient data we are going to be using

sns.distplot(df['column'], kde=False, bins=10)

factor plot

sns.factorplot(x='sex',y='total_bill',data=tips,kind='bar')

heatmap formula

sns.heatmap(fp)

If we are dealing with bivarient data we are going to be using

sns.jointplot(x= 'total_bill', y='tip',data=tips, kind= hex)

kde plot

sns.kdeplot(tips['total_bill'])

Pairplot

sns.pairplot(tips, hue='') hue has to be catagorical

rugplot code

sns.rugplot(tips['total_bill'])

strip plot

sns.stripplot(x="day", y="total_bill", data=tips)

For the above picture we want to compare male and female what should we we do?

sns.stripplot(x="day", y="total_bill", data=tips,jitter=True,hue='sex',palette='Set1')

For the above picture we want to compare male and female what should we we do? the graph should not be on top of each other

sns.stripplot(x='day', y='total_bill', data=tips, hue='sex', dodge=True)

For the above picture, since they are all stacked up we want to unstack them what argument do we add in?

sns.stripplot(x='day', y='total_bill', data=tips, jitter=True)

swarmplot

sns.swarmplot(x="day", y="total_bill", data=tips)

What do we so when we want to use compare two things using violin plot

sns.violinplot(x="day", y="total_bill", data=tips,hue='sex',palette='Set1')

What do we so when we want to use compare two things using violin plot in the same violin plot

sns.violinplot(x="day", y="total_bill", data=tips,hue='sex',split=True,palette='Set1')

Violin Plot

sns.violinplot(x="day", y="total_bill", data=tips,palette='rainbow')

Inorder to use the heat map we need what function?

tips.corr() If we have a catagorical and numerical form we need to change it to fp = flights.pivot_table(index='month', columns='year', values='passengers')

barplot

we use one catagorical and one numerical column sns.barplot(x=, y=, data=, estimator=)


Ensembles d'études connexes

Chapter 2 - The Global Marketing Environment

View Set

Domain 2: Access Disclosure, Privacy, Security Practice Questions

View Set

Test 3 Chapter 9 and 10 Learnsmart Questions

View Set

Fundamentals Nursing Chapter 29 Perioperative Nursing

View Set

- AMT - Airframe - Aircraft Landing Gear Systems

View Set

Human Resource management Ch 9&10

View Set