Group by Continuous Variable
Swipe to start coding
This time, we are goint to paint the points for the same scatter plot in respect to the 'hdi' column values.
-
Initialize a scatter plot with the next parameters:
- Set points color (
c) to the'hdi'column values of thedata; - Set colormap (
cmap) to'plasma'.
Save the call of the
.scatter()function to thecaxvariable. - Set points color (
-
Apply
.colorbar()function toFigureobject assigningcaxas an argument.
Løsning
Takk for tilbakemeldingene dine!
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
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.94
Group by Continuous Variable
Sveip for å vise menyen
Swipe to start coding
This time, we are goint to paint the points for the same scatter plot in respect to the 'hdi' column values.
-
Initialize a scatter plot with the next parameters:
- Set points color (
c) to the'hdi'column values of thedata; - Set colormap (
cmap) to'plasma'.
Save the call of the
.scatter()function to thecaxvariable. - Set points color (
-
Apply
.colorbar()function toFigureobject assigningcaxas an argument.
Løsning
Takk for tilbakemeldingene dine!
single