Course Content
Deep Dive into the seaborn Visualization
Deep Dive into the seaborn Visualization
Heatmap
A heatmap
is a plot of rectangular data as a color-encoded matrix. As a parameter, it takes a 2D dataset. That dataset can be coerced into an ndarray
.
This is a great way to visualize data because it can show the relation between variables, including time. For instance, the number of flights through the years.
Task
- Set the
'ticks'
style with the'seagreen'
figure.facecolor
. - Create the
heatmap
using theseaborn
library:
- Add the data for the
heatmap
. You only need to input the name of the DataFrame (withoutdata = ...
); - Set the
'viridis'
cmap
parameter; - Add the
annot
parameter; - Set the
fmt
parameter equals the'0.99g'
; - Set the
linecolor
parameter equals the'plum'
; - Display the plot.
Thanks for your feedback!
Heatmap
A heatmap
is a plot of rectangular data as a color-encoded matrix. As a parameter, it takes a 2D dataset. That dataset can be coerced into an ndarray
.
This is a great way to visualize data because it can show the relation between variables, including time. For instance, the number of flights through the years.
Task
- Set the
'ticks'
style with the'seagreen'
figure.facecolor
. - Create the
heatmap
using theseaborn
library:
- Add the data for the
heatmap
. You only need to input the name of the DataFrame (withoutdata = ...
); - Set the
'viridis'
cmap
parameter; - Add the
annot
parameter; - Set the
fmt
parameter equals the'0.99g'
; - Set the
linecolor
parameter equals the'plum'
; - Display the plot.
Thanks for your feedback!
Heatmap
A heatmap
is a plot of rectangular data as a color-encoded matrix. As a parameter, it takes a 2D dataset. That dataset can be coerced into an ndarray
.
This is a great way to visualize data because it can show the relation between variables, including time. For instance, the number of flights through the years.
Task
- Set the
'ticks'
style with the'seagreen'
figure.facecolor
. - Create the
heatmap
using theseaborn
library:
- Add the data for the
heatmap
. You only need to input the name of the DataFrame (withoutdata = ...
); - Set the
'viridis'
cmap
parameter; - Add the
annot
parameter; - Set the
fmt
parameter equals the'0.99g'
; - Set the
linecolor
parameter equals the'plum'
; - Display the plot.
Thanks for your feedback!
A heatmap
is a plot of rectangular data as a color-encoded matrix. As a parameter, it takes a 2D dataset. That dataset can be coerced into an ndarray
.
This is a great way to visualize data because it can show the relation between variables, including time. For instance, the number of flights through the years.
Task
- Set the
'ticks'
style with the'seagreen'
figure.facecolor
. - Create the
heatmap
using theseaborn
library:
- Add the data for the
heatmap
. You only need to input the name of the DataFrame (withoutdata = ...
); - Set the
'viridis'
cmap
parameter; - Add the
annot
parameter; - Set the
fmt
parameter equals the'0.99g'
; - Set the
linecolor
parameter equals the'plum'
; - Display the plot.