Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Create a Simple Bar Chart | Bar Charts
Visualization in Python with matplotlib
course content

Contenu du cours

Visualization in Python with matplotlib

Visualization in Python with matplotlib

1. Basics: Line Charts
2. Bar Charts
3. Scatter Plots

book
Create a Simple Bar Chart

Tâche

Swipe to start coding

You are given dataframe data with rainfall information for Indian cities/districts. Your tasks are:

  1. Filter the observations from data so that only rainfall data for 'NEW DELHI' will remain. Save this information within the new_delhi variable.
  2. Create Axes and Figure objects (use fix, ax variables).
  3. Initialize a bar chart with Month column values on the x-axis and Rainfall column values on the y-axis (new_delhi data).

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2
toggle bottom row

book
Create a Simple Bar Chart

Tâche

Swipe to start coding

You are given dataframe data with rainfall information for Indian cities/districts. Your tasks are:

  1. Filter the observations from data so that only rainfall data for 'NEW DELHI' will remain. Save this information within the new_delhi variable.
  2. Create Axes and Figure objects (use fix, ax variables).
  3. Initialize a bar chart with Month column values on the x-axis and Rainfall column values on the y-axis (new_delhi data).

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
We're sorry to hear that something went wrong. What happened?
some-alt