Create a Stacked Bar Chart
Swipe to start coding
You are given the same dataframe data. Your tasks are:
-
Save data for
'MADURAI'in themaduraivariable. -
Call
.bar()function twice:- the first time to build bars for the
new_delhidata (the'Month'column on the x-axis and the'Rainfall'column on the y-axis); - the second time to build bars for the
maduraidata above built ones (the same columns and order as for thenew_delhidata).
Use
'New Delhi'and'Madurai'as thelabelparameters. - the first time to build bars for the
-
Display the legend of the plot.
Solution
Merci pour vos commentaires !
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
Résumer ce chapitre
Expliquer le code dans file
Expliquer pourquoi file ne résout pas la tâche
Awesome!
Completion rate improved to 2.94
Create a Stacked Bar Chart
Glissez pour afficher le menu
Swipe to start coding
You are given the same dataframe data. Your tasks are:
-
Save data for
'MADURAI'in themaduraivariable. -
Call
.bar()function twice:- the first time to build bars for the
new_delhidata (the'Month'column on the x-axis and the'Rainfall'column on the y-axis); - the second time to build bars for the
maduraidata above built ones (the same columns and order as for thenew_delhidata).
Use
'New Delhi'and'Madurai'as thelabelparameters. - the first time to build bars for the
-
Display the legend of the plot.
Solution
Merci pour vos commentaires !
single