Create a Stacked Bar Chart
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.94
Create a Stacked Bar Chart
Sveip for å vise menyen
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
single