Contenido del Curso
Deep Dive into the seaborn Visualization
Deep Dive into the seaborn Visualization
1. Light Start
4. Matrix Plots
FacetGrid
The time to learn the cool plots we were talking about!
A useful approach to exploring medium-dimensional data is by drawing multiple instances of the same plot on different subsets of your dataset.
FacetGrid
object takes a DataFrame as input and the names of the variables that will form the grid's row, column, or hue dimensions. The variables should be categorical, and the data at each level of the variable will be used for a facet along that axis.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/6.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/7.gif?w=3840&q=75)
Tarea
- Set the
'whitegrid'
style with the'cornsilk'
axes.facecolor
. - Create a FacetGrid variable
g
:
- Set the data for the
FacetGrid
; - Set the
col
parameter equals the'day'
; - Set the
row
parameter equals the'smoker'
; - Set the
height
parameter equals3
.
Implement the .map()
function to build histplots:
- Create histplots;
- Set the
'olive'
color for the histplots; - Add the
kde
parameter; - Disable the
fill
parameter; - Set the
binwidth
equals4
; - Display the plot.
Tarea
- Set the
'whitegrid'
style with the'cornsilk'
axes.facecolor
. - Create a FacetGrid variable
g
:
- Set the data for the
FacetGrid
; - Set the
col
parameter equals the'day'
; - Set the
row
parameter equals the'smoker'
; - Set the
height
parameter equals3
.
Implement the .map()
function to build histplots:
- Create histplots;
- Set the
'olive'
color for the histplots; - Add the
kde
parameter; - Disable the
fill
parameter; - Set the
binwidth
equals4
; - Display the plot.
¿Todo estuvo claro?
FacetGrid
The time to learn the cool plots we were talking about!
A useful approach to exploring medium-dimensional data is by drawing multiple instances of the same plot on different subsets of your dataset.
FacetGrid
object takes a DataFrame as input and the names of the variables that will form the grid's row, column, or hue dimensions. The variables should be categorical, and the data at each level of the variable will be used for a facet along that axis.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/6.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/7.gif?w=3840&q=75)
Tarea
- Set the
'whitegrid'
style with the'cornsilk'
axes.facecolor
. - Create a FacetGrid variable
g
:
- Set the data for the
FacetGrid
; - Set the
col
parameter equals the'day'
; - Set the
row
parameter equals the'smoker'
; - Set the
height
parameter equals3
.
Implement the .map()
function to build histplots:
- Create histplots;
- Set the
'olive'
color for the histplots; - Add the
kde
parameter; - Disable the
fill
parameter; - Set the
binwidth
equals4
; - Display the plot.
Tarea
- Set the
'whitegrid'
style with the'cornsilk'
axes.facecolor
. - Create a FacetGrid variable
g
:
- Set the data for the
FacetGrid
; - Set the
col
parameter equals the'day'
; - Set the
row
parameter equals the'smoker'
; - Set the
height
parameter equals3
.
Implement the .map()
function to build histplots:
- Create histplots;
- Set the
'olive'
color for the histplots; - Add the
kde
parameter; - Disable the
fill
parameter; - Set the
binwidth
equals4
; - Display the plot.
¿Todo estuvo claro?
The time to learn the cool plots we were talking about!
A useful approach to exploring medium-dimensional data is by drawing multiple instances of the same plot on different subsets of your dataset.
FacetGrid
object takes a DataFrame as input and the names of the variables that will form the grid's row, column, or hue dimensions. The variables should be categorical, and the data at each level of the variable will be used for a facet along that axis.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/6.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/7.gif?w=3840&q=75)
Tarea
- Set the
'whitegrid'
style with the'cornsilk'
axes.facecolor
. - Create a FacetGrid variable
g
:
- Set the data for the
FacetGrid
; - Set the
col
parameter equals the'day'
; - Set the
row
parameter equals the'smoker'
; - Set the
height
parameter equals3
.
Implement the .map()
function to build histplots:
- Create histplots;
- Set the
'olive'
color for the histplots; - Add the
kde
parameter; - Disable the
fill
parameter; - Set the
binwidth
equals4
; - Display the plot.
FacetGrid
The time to learn the cool plots we were talking about!
A useful approach to exploring medium-dimensional data is by drawing multiple instances of the same plot on different subsets of your dataset.
FacetGrid
object takes a DataFrame as input and the names of the variables that will form the grid's row, column, or hue dimensions. The variables should be categorical, and the data at each level of the variable will be used for a facet along that axis.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/6.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/facetgrid+gifs/7.gif?w=3840&q=75)
Tarea
- Set the
'whitegrid'
style with the'cornsilk'
axes.facecolor
. - Create a FacetGrid variable
g
:
- Set the data for the
FacetGrid
; - Set the
col
parameter equals the'day'
; - Set the
row
parameter equals the'smoker'
; - Set the
height
parameter equals3
.
Implement the .map()
function to build histplots:
- Create histplots;
- Set the
'olive'
color for the histplots; - Add the
kde
parameter; - Disable the
fill
parameter; - Set the
binwidth
equals4
; - Display the plot.