Rugplot
The rugplot
is intended to complement other plots by showing the location of individual observations in an unobtrusive way.






Tâche
Swipe to start coding
- Set the
'darkgrid'
style with the disabled'axes.grid'
and the'axes.facecolor'
equals the'aliceblue'
(color). We learned how to do that in the first part of the course. - Create the
kdeplot
using theseaborn
library. - Create the
rugplot
using theseaborn
library:
- Set the
x
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'sex'
; - Set the
height
parameter equals0.05
; - Set the
'magma'
palette
; - Set the data using the
df
; - Display the plot.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 3
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Résumer ce chapitre
Expliquer le code dans file
Expliquer pourquoi file ne résout pas la tâche
Awesome!
Completion rate improved to 4.35
Rugplot
Glissez pour afficher le menu
The rugplot
is intended to complement other plots by showing the location of individual observations in an unobtrusive way.






Tâche
Swipe to start coding
- Set the
'darkgrid'
style with the disabled'axes.grid'
and the'axes.facecolor'
equals the'aliceblue'
(color). We learned how to do that in the first part of the course. - Create the
kdeplot
using theseaborn
library. - Create the
rugplot
using theseaborn
library:
- Set the
x
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'sex'
; - Set the
height
parameter equals0.05
; - Set the
'magma'
palette
; - Set the data using the
df
; - Display the plot.
Solution
Tout était clair ?
Merci pour vos commentaires !
Awesome!
Completion rate improved to 4.35Section 2. Chapitre 3
single