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
Visualization in Python with matplotlib
course content

Course Content

Visualization in Python with matplotlib

Visualization in Python with matplotlib

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

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

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

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 2
toggle bottom row

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

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

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 2
toggle bottom row

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

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

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

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

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 2
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt