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.









Swipe to start coding
- 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.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 4.35
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.









Swipe to start coding
- 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.
Рішення
Дякуємо за ваш відгук!
Awesome!
Completion rate improved to 4.35single