Create a Stacked Bar Chart
Tarea
Swipe to start coding
You are given the same dataframe data
. Your tasks are:
-
Save data for
'MADURAI'
in themadurai
variable. -
Call
.bar()
function twice:- the first time to build bars for the
new_delhi
data (the'Month'
column on the x-axis and the'Rainfall'
column on the y-axis); - the second time to build bars for the
madurai
data above built ones (the same columns and order as for thenew_delhi
data).
Use
'New Delhi'
and'Madurai'
as thelabel
parameters. - the first time to build bars for the
-
Display the legend of the plot.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 4
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 2.94
Create a Stacked Bar Chart
Desliza para mostrar el menú
Tarea
Swipe to start coding
You are given the same dataframe data
. Your tasks are:
-
Save data for
'MADURAI'
in themadurai
variable. -
Call
.bar()
function twice:- the first time to build bars for the
new_delhi
data (the'Month'
column on the x-axis and the'Rainfall'
column on the y-axis); - the second time to build bars for the
madurai
data above built ones (the same columns and order as for thenew_delhi
data).
Use
'New Delhi'
and'Madurai'
as thelabel
parameters. - the first time to build bars for the
-
Display the legend of the plot.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Awesome!
Completion rate improved to 2.94Sección 2. Capítulo 4
single