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

Course Content

Visualization in Python with matplotlib

Create a Simple Bar ChartCreate a Simple Bar Chart

Task

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).

Everything was clear?

Section 2. Chapter 2
toggle bottom row
course content

Course Content

Visualization in Python with matplotlib

Create a Simple Bar ChartCreate a Simple Bar Chart

Task

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).

Everything was clear?

Section 2. Chapter 2
toggle bottom row
some-alt