# Introduction to Seaborn

Use Seaborn, a Python data visualization library, to create bar charts for statistical analysis.

Start- 1
In this lesson, you'll learn how to use Seaborn to create bar charts for statistical analysis. Seaborn is a Python data visualization library that provides simple code to create elegant visualizat...

- 2
Throughout this lesson, you'll use Seaborn to visualize a Pandas DataFrame. DataFrames contain data structured into rows and columns. DataFrames look similar to other data tables you may be famil...

- 3
Take a look at the file called

**results.csv**. You'll plot that data soon, but before you plot it, take a minute to understand the context behind that data, which is based on a hypothetical situat... - 4
Seaborn can also calculate

*aggregate statistics*for large datasets. To understand why this is helpful, we must first understand what an*aggregate*is. An aggregate statistic, or aggregate, is ... - 5
Recall our gradebook from the previous exercise: |student|assignment_name|grade| |-|-|-| |Amy|Assignment 1|75| |Amy|Assignment 2|82| |Bob|Assignment 1|99| |Bob|Assignment 2| 90| |Chris|Assignme...

- 6
By default, Seaborn will place

*error bars*on each bar when you use the [...] function. Error bars are the small lines that extend above and below the top of each bar. Errors bars visually indi... - 7
In most cases, we'll want to plot the mean of our data, but sometimes, we'll want something different:

*If our data has many outliers, we may want to plot the*If our data is categorica...*median*. - 8
Sometimes we'll want to aggregate our data by multiple columns to visualize nested categorical variables. For example, consider our hospital survey data. The mean satisfaction seems to depend on...

- 9
In this lesson you learned how to extend Matplotlib with Seaborn to create meaningful visualizations from data in DataFrames. You've also learned how Seaborn creates aggregated charts and how to c...

- 1
In this lesson, we will explore how to use Seaborn to graph multiple statistical distributions, including box plots and violin plots. Seaborn is optimized to work with large datasets — from ...

- 2
Before we dive into these new charts, we need to understand why we'd want to use them. To best illustrate this idea, we need to revisit bar charts. We previously learned that Seaborn can quickly ...

- 3
Bar plots can tell us what the mean of our dataset is, but they don't give us any hints as to the distribution of the dataset values. For all we know, the data could be clustered around the mean or...

- 4
To plot a KDE in Seaborn, we use the method [...] . A KDE plot takes the following arguments: - [...] - the univariate dataset being visualized, like a Pandas DataFrame, Python list, or NumP...

- 5
While a KDE plot can tell us about the shape of the data, it's cumbersome to compare multiple KDE plots at once. They also can't tell us other statistical information, like the values of outliers. ...

- 6
One advantage of the box plot over the KDE plot is that in Seaborn, it is easy to plot multiples and compare distributions. Let's look again at our three datasets, and how they look plotted as bo...

- 7
As we saw in the previous exercises, while it's possible to plot multiple histograms, it is not a great option for comparing distributions. Seaborn gives us another option for comparing distributio...

- 8
Violin Plots are a powerful graphing tool that allows you to compare multiple distributions at once. Let's look at how our original three data sets look like as violin plots: [...] ![](https:...

- 9
In this lesson, we examined how Seaborn has several plots that can visualize distributions. While bar plots can display basic aggregates, KDE plots, dist plots, box plots, and violin plots can show...

## What you'll create

Portfolio projects that showcase your new skills

## How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory