Pointplot
A pointplot
represents an estimate of the central tendency for a numeric variable by the position of scatter plot points and provides some indication of the uncertainty around that estimate using error bars.











Oppgave
Swipe to start coding
- Set the
'ticks'
style with the'azure'
axes.facecolor
. - Create the
pointplot
using theseaborn
library and theg
variable:
- Set the
x
parameter equals the'day'
; - Set the
y
parameter equals the'tip'
; - Set the
hue
parameter equals the'sex'
; - Set
'v'
&'o'
markers
; - Set the
'rocket'
palette
; - Set the
dodge
parameter equals theTrue
; - Set the
capsize
parameter equals0.2
; - Set the next
linestyles
:'-'
&'- -'
; - Set the data;
- Display the plot.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 4.35
Pointplot
Sveip for å vise menyen
A pointplot
represents an estimate of the central tendency for a numeric variable by the position of scatter plot points and provides some indication of the uncertainty around that estimate using error bars.











Oppgave
Swipe to start coding
- Set the
'ticks'
style with the'azure'
axes.facecolor
. - Create the
pointplot
using theseaborn
library and theg
variable:
- Set the
x
parameter equals the'day'
; - Set the
y
parameter equals the'tip'
; - Set the
hue
parameter equals the'sex'
; - Set
'v'
&'o'
markers
; - Set the
'rocket'
palette
; - Set the
dodge
parameter equals theTrue
; - Set the
capsize
parameter equals0.2
; - Set the next
linestyles
:'-'
&'- -'
; - Set the data;
- Display the plot.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 4.35Seksjon 3. Kapittel 6
single