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

Understanding Relationship plots

Learn to generate simulated data and create insightful plots, including line and scatter plots, to explore the connections between variables.
Start this project
Understanding Relationship plotsUnderstanding Relationship 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

Understanding Scatter Plots

Which of the following best describes a scenario where a scatter plot is the most appropriate type of visualization?

multiplechoice

Understanding Line Plots

In which of the following scenarios would a line plot be the most suitable choice for data visualization?

codevalidated

Visualizing Yearly Passenger Numbers

In this exercise, you will visualize the total number of passengers traveling each year using the "flights" dataset from Seaborn. Your task involves aggregating the monthly passenger data into yearly totals and creating a line plot to visualize these totals over time.

  1. Load the Dataset: Load the "flights.csv" dataset into a variable named flights.
  2. Aggregate Data: Group the data by year and calculate the total number of passengers for each year. Store the aggregated data in a variables name yearly_passengers.
  3. Create the Plot: Use Matplotlib to plot the yearly passenger numbers. Your plot should have years on the x-axis and the total number of passengers on the y-axis and should be titled "Yearly Passenger Numbers" with appropriate labels x-axis and y-axis as "Year" and "Number of Passengers" respectively. Save the plot as a variable named fig.
Understanding Relationship plotsUnderstanding Relationship plots
Project Created by

Verónica Barraza

This project is part of

Visualizations with Matplotlib

Explore other projects