Python Tutorial : Introduction to Seaborn
Key Takeaways
This video tutorial introduces the Seaborn library, a powerful Python tool for creating data visualizations, and demonstrates its ease of use in creating common types of plots, including scatter plots and count plots, with matplotlib as its foundation.
Full Transcript
hello welcome to this introductory course on Seabourn my name is Erin case and I'll be your instructor so what is Seaborn Seaborn is a powerful Python library for creating data visualizations it was developed in order to make it easy to create the most common types of plots the plot shown here can be created with just a few lines of Seabourn code this is a picture of a typical data analysis workflow data visualization is often a huge component of both the data exploration phase and the communication of results so Seabourn will be very useful there there are several tools that can be used for data visualization but Seaboard offers several advantages first Seaborn's main purpose is to make data visualization easy it was built to automatically handle a lot of complexity behind the scenes second Seabourn works extremely well with pandas data structures pandas is a Python library that is widely used for data analysis finally it's built on top of matplotlib which is another Python visualization library matplotlib is extremely flexible Seabourn allows you to take advantage of this flexibility when you need it while avoiding the complexity that Matt plot lifts flexibility can introduce to get started we'll need to import the Seabourn library the line import Seabourn as SNS will import Seabourn as the conventionally used alias SMS why SNS the Seabourn library was apparently named after a character named samuel norman Seaborn from the television show The West Wing thus the standard alias is the characters initials SNS we also need to import matplotlib which is the library that seaboard is built on top of we do this by typing import matplotlib PI plot as P LT p LT is the alias that most people use to refer to matplotlib so we'll do that here as well let's now dive into an example to illustrate how easily you can create visualizations using Seaborn here we have data for ten people consisting of lists of their heights and inches and their weights and pounds do taller people tend to weigh more you can visualize this using a type of plot known as a scatter plot which you'll learn more about later in the course use SNS dot scatter plot to call the scatter plot function from the Seabourn library then specify what to put on the x-axis and y-axis finally call the plot show function from matplotlib to show the scatter plot this plot shows us that taller people tend to have a higher weight how many of our observations of heights and weights came from males versus females you can use another type of plot the count plot to investigate this cow plots take in a categorical list and return bars that represent the number of less entries per category use the count plot function and provide the list of every person's gender this count plot shows that out of the ten observations we had in our height and weight scatterplot 6 were male and 4 or female now those were a couple of simple examples throughout this course you'll learn to make more complex visualizations such as those pictured here more importantly you'll learn when to use each type of visualization in order to most effectively extract and communicate insights using data I'm excited to dive into Seabourn with you throughout this course for now let's practice what you
Original Description
Want to learn more? Take the full course at https://learn.datacamp.com/courses/introduction-to-data-visualization-with-seaborn at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
Hello! Welcome to this introductory course on Seaborn! My name is Erin Case, and I'll be your instructor.
So what is Seaborn? Seaborn is a powerful Python library for creating data visualizations.
It was developed in order to make it easy to create the most common types of plots.
The plot shown here can be created with just a few lines of Seaborn code.
This is a picture of a typical data analysis workflow. Data visualization is often a huge component of both the data exploration phase and the communication of results, so Seaborn will be very useful there.
There are several tools that can be used for data visualization, but Seaborn offers several advantages.
First, Seaborn's main purpose is to make data visualization easy. It was built to automatically handle a lot of complexity behind the scenes.
Second, Seaborn works extremely well with pandas data structures. Pandas is a Python library that is widely used for data analysis.
Finally, it's built on top of Matplotlib, which is another Python visualization library. Matplotlib is extremely flexible. Seaborn allows you to take advantage of this flexibility when you need it, while avoiding the complexity that Matplotlib's flexibility can introduce.
To get started, we'll need to import the Seaborn library. The line "import seaborn as sns" will import Seaborn as the conventionally used alias "sns".
Why "sns"? The Seaborn library was apparently named after a character named Samuel Norman Seaborn from the television show "The West Wing" - thus, the standard alias is the character's initials ("sns").
We also need to import Matplotlib, which is the library that Seaborn is built on top of. We do this by typing "import matplotlib.pyplot as plt". "plt" is the alias that most peopl
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from DataCamp · DataCamp · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SQL Server Tutorial: Date manipulation
DataCamp
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
R Tutorial: Adding aesthetics to represent a variable
DataCamp
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
Python Tutorial: Preparation for modeling
DataCamp
Python Tutorial: Machine Learning modeling steps
DataCamp
R Tutorial: The prior model
DataCamp
R Tutorial: Data & the likelihood
DataCamp
R Tutorial: The posterior model
DataCamp
R Tutorial: An Introduction to plotly
DataCamp
R Tutorial: Plotting a single variable
DataCamp
R Tutorial: Bivariate graphics
DataCamp
Python Tutorial: Customer Segmentation in Python
DataCamp
Python Tutorial: Time cohorts
DataCamp
Python Tutorial: Calculate cohort metrics
DataCamp
Python Tutorial: Cohort analysis visualization
DataCamp
R Tutorial: Building Dashboards with flexdashboard
DataCamp
R Tutorial: Anatomy of a flexdashboard
DataCamp
R Tutorial: Layout basics
DataCamp
R Tutorial: Advanced layouts
DataCamp
Python Tutorial: Time Series Analysis in Python
DataCamp
Python Tutorial: Correlation of Two Time Series
DataCamp
Python Tutorial: Simple Linear Regressions
DataCamp
Python Tutorial: Autocorrelation
DataCamp
R Tutorial: The gapminder dataset
DataCamp
R Tutorial: The filter verb
DataCamp
R Tutorial: The arrange verb
DataCamp
R Tutorial: The mutate verb
DataCamp
R Tutorial: What is cluster analysis?
DataCamp
R Tutorial: Distance between two observations
DataCamp
R Tutorial: The importance of scale
DataCamp
R Tutorial: Measuring distance for categorical data
DataCamp
Python Tutorial: Plotting multiple graphs
DataCamp
Python Tutorial: Customizing axes
DataCamp
Python Tutorial: Legends, annotations, & styles
DataCamp
Python Tutorial: Introduction to iterators
DataCamp
Python Tutorial: Playing with iterators
DataCamp
Python Tutorial: Using iterators to load large files into memory
DataCamp
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
SQL Tutorial: Tables: At the core of every database
DataCamp
SQL Tutorial: Update your database as the structure changes
DataCamp
Python Tutorial: Classification-Tree Learning
DataCamp
Python Tutorial: Decision-Tree for Classification
DataCamp
Python Tutorial: Decision-Tree for Regression
DataCamp
Python Tutorial: Census Subject Tables
DataCamp
Python Tutorial: Census Geography
DataCamp
Python Tutorial: Using the Census API
DataCamp
R Tutorial: A/B Testing in R
DataCamp
R Tutorial: Baseline Conversion Rates
DataCamp
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
R Tutorial: Introduction to qualitative data
DataCamp
R Tutorial: Understanding your qualitative variables
DataCamp
R Tutorial: Making Better Plots
DataCamp
SQL Tutorial: OLTP and OLAP
DataCamp
SQL Tutorial: Storing data
DataCamp
SQL Tutorial: Database design
DataCamp
Python Tutorial: Introduction to spaCy
DataCamp
Python Tutorial: Statistical Models
DataCamp
Python Tutorial: Rule-based Matching
DataCamp
🎓
Tutor Explanation
DeepCamp AI