Understanding Distribution plots
Understanding Distribution plots Data Science Project
Visualizations with Matplotlib

Understanding Distribution plots

Explore the power of histograms in data visualization with this lab. Learn to create basic histograms, experiment with bin sizes, and uncover insights from flight delay data. The quiz tests your understanding, and a coding activity lets you visualize flight passenger distribution using Matplotlib.
Start this project
Understanding Distribution plotsUnderstanding Distribution plots
Project Created by

Verónica Barraza

Project Activities

All our Data Science projects include bite-sized activities to test your knowledge and practice in an environment with constant feedback.

All our activities include solutions with explanations on how they work and why we chose them.

multiplechoice

What is the primary purpose of a histogram in data visualization?

multiplechoice

In a histogram, what does the height of each bar represent?

multiplechoice

When should you adjust the bin size in a histogram?

codevalidated

Visualizing Flight Passenger Data with a Histogram

Your task is to create a histogram to observe the distribution of the number of passengers on various flights. This activity aims to familiarize you with basic data visualization and give you insights into passenger distribution across flights.

You have a dataset that lists numbers of passengers on different flights. Your dataset will be loaded into a Pandas DataFrame named df. Ensure this DataFrame includes at least one column that records passenger numbers.

Steps to Complete:

  1. Load Your Data:

    • Import your dataset(flights.csv) into a Pandas DataFrame and name it df.
    • Make sure you have a column that accurately represents the number of passengers on each flight.
  2. Plot the Histogram:

    • Using Matplotlib, create a histogram to visualize the distribution of passenger numbers across flights. You'll be making use of Matplotlib's hist function. At this stage, stick with the default parameters to keep things simple.
Understanding Distribution plotsUnderstanding Distribution plots
Project Created by

Verónica Barraza

This project is part of

Visualizations with Matplotlib

Explore other projects