Create a Stacked Bar Chart
Task
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
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.94
Create a Stacked Bar Chart
Swipe to show menu
Task
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
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single