Building visualizations with Seaborn

Introduction to Python in Power BI

Jacob H. Marquez

Data Scientist

Plots with the Seaborn package

A line plot showing flights data by year and colored by month.

1 https://seaborn.pydata.org/generated/seaborn.lineplot.html
Introduction to Python in Power BI

Plots with the Seaborn package

A pair plot with four columns and four rows.

1 https://seaborn.pydata.org/generated/seaborn.pairplot.html
Introduction to Python in Power BI

Plots with the Seaborn package

A joint plot showing bill length vs bill depth.

1 https://seaborn.pydata.org/generated/seaborn.jointplot.html
Introduction to Python in Power BI

Histograms

A histogram of the heights of people. It is a normal distribution.

1 https://seaborn.pydata.org/generated/seaborn.histplot.html
Introduction to Python in Power BI

Reading a histogram

Histogram skewed to the right with most observations on the left side.

Introduction to Python in Power BI

Reading a histogram

Histogram skewed to the left with most observations on the right side.

Introduction to Python in Power BI

Reading a histogram

Histogram of a bimodal distribution

Introduction to Python in Power BI

Scatter plots

Random blob of data with no relationship.

Introduction to Python in Power BI

Reading scatter plots

A scatter plot with a positive relationship, which means, it moves to the right and up.

Introduction to Python in Power BI

Reading scatter plots

A scatter plot with a negative relationship, which means, it moves to the right and down.

Introduction to Python in Power BI

Joint plots

A joint plot with a scatter plot in the middle and two histograms, one on the top and right side.

seaborn.jointplot(
    x = "x",
    y = "y", 
    data = DataFrame
    )
Introduction to Python in Power BI

Pair plots

A pair plot with four columns and four rows.

seaborn.pairplot(
    data = DataFrame
    )
Introduction to Python in Power BI

Steps for building a plot in Power BI

import matplotlib.pyplot as plt
import seaborn as sns
# Data transformation steps
...
seaborn.___plot(
    data = DataFrame,
      ...
    )
plt.show()
Introduction to Python in Power BI

Let's practice!

Introduction to Python in Power BI

Preparing Video For Download...