Зміст курсу
Deep Dive into the seaborn Visualization
Deep Dive into the seaborn Visualization
1. Light Start
4. Matrix Plots
Barplot
A barplot
represents an estimate of the central tendency for a numeric variable with the height of each rectangle and provides some indication of the uncertainty around that estimate using error bars.
Bar plots include 0 in the quantitative axis range, and they are a good choice when 0 is a meaningful value for the quantitative variable, and you want to make comparisons against it.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+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/barplot+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/barplot+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/barplot+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/barplot+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/barplot+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/barplot+gifs/7.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+gifs/8.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+gifs/9.gif?w=3840&q=75)
Завдання
- Set the
'ticks'
style. - Create the
barplot
using theseaborn
library:
- Set the
x
parameter equals the'day'
; - Set the
y
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'smoker'
; - Set the
linewidth
parameter equals2.5
; - Set the
capsize
parameter equals0.1
; - Set the
'pink'
errcolor
parameter; - Set the
'magma'
palette
; - Set the data;
- Display the plot.
Завдання
- Set the
'ticks'
style. - Create the
barplot
using theseaborn
library:
- Set the
x
parameter equals the'day'
; - Set the
y
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'smoker'
; - Set the
linewidth
parameter equals2.5
; - Set the
capsize
parameter equals0.1
; - Set the
'pink'
errcolor
parameter; - Set the
'magma'
palette
; - Set the data;
- Display the plot.
Все було зрозуміло?
Barplot
A barplot
represents an estimate of the central tendency for a numeric variable with the height of each rectangle and provides some indication of the uncertainty around that estimate using error bars.
Bar plots include 0 in the quantitative axis range, and they are a good choice when 0 is a meaningful value for the quantitative variable, and you want to make comparisons against it.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+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/barplot+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/barplot+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/barplot+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/barplot+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/barplot+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/barplot+gifs/7.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+gifs/8.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+gifs/9.gif?w=3840&q=75)
Завдання
- Set the
'ticks'
style. - Create the
barplot
using theseaborn
library:
- Set the
x
parameter equals the'day'
; - Set the
y
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'smoker'
; - Set the
linewidth
parameter equals2.5
; - Set the
capsize
parameter equals0.1
; - Set the
'pink'
errcolor
parameter; - Set the
'magma'
palette
; - Set the data;
- Display the plot.
Завдання
- Set the
'ticks'
style. - Create the
barplot
using theseaborn
library:
- Set the
x
parameter equals the'day'
; - Set the
y
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'smoker'
; - Set the
linewidth
parameter equals2.5
; - Set the
capsize
parameter equals0.1
; - Set the
'pink'
errcolor
parameter; - Set the
'magma'
palette
; - Set the data;
- Display the plot.
Все було зрозуміло?
A barplot
represents an estimate of the central tendency for a numeric variable with the height of each rectangle and provides some indication of the uncertainty around that estimate using error bars.
Bar plots include 0 in the quantitative axis range, and they are a good choice when 0 is a meaningful value for the quantitative variable, and you want to make comparisons against it.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+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/barplot+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/barplot+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/barplot+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/barplot+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/barplot+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/barplot+gifs/7.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+gifs/8.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+gifs/9.gif?w=3840&q=75)
Завдання
- Set the
'ticks'
style. - Create the
barplot
using theseaborn
library:
- Set the
x
parameter equals the'day'
; - Set the
y
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'smoker'
; - Set the
linewidth
parameter equals2.5
; - Set the
capsize
parameter equals0.1
; - Set the
'pink'
errcolor
parameter; - Set the
'magma'
palette
; - Set the data;
- Display the plot.
Barplot
A barplot
represents an estimate of the central tendency for a numeric variable with the height of each rectangle and provides some indication of the uncertainty around that estimate using error bars.
Bar plots include 0 in the quantitative axis range, and they are a good choice when 0 is a meaningful value for the quantitative variable, and you want to make comparisons against it.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+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/barplot+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/barplot+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/barplot+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/barplot+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/barplot+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/barplot+gifs/7.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+gifs/8.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/barplot+gifs/9.gif?w=3840&q=75)
Завдання
- Set the
'ticks'
style. - Create the
barplot
using theseaborn
library:
- Set the
x
parameter equals the'day'
; - Set the
y
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'smoker'
; - Set the
linewidth
parameter equals2.5
; - Set the
capsize
parameter equals0.1
; - Set the
'pink'
errcolor
parameter; - Set the
'magma'
palette
; - Set the data;
- Display the plot.