Create a Stacked Bar Chart
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 4
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.94
Create a Stacked Bar Chart
Pyyhkäise näyttääksesi valikon
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 4
single