/05-Pyber

Pyber Assignment- Matplotlib/Pandas Charting

Primary LanguageJupyter Notebook

Unit 5 | Assignment - The Power of Plots

Background

What good is data without a good plot to tell the story?

So, let's take what you've learned about Python Matplotlib and apply it to some real-world situations. For this assignment, you'll need to complete 1 of 2 Data Challenges. As always, it's your choice which you complete. Perhaps, choose the one most relevant to your future career.

Option 1: Pyber

Ride

The ride sharing bonanza continues! Seeing the success of notable players like Uber and Lyft, you've decided to join a fledgling ride sharing company of your own. In your latest capacity, you'll be acting as Chief Data Strategist for the company. In this role, you'll be expected to offer data-backed guidance on new opportunities for market differentiation.

You've since been given access to the company's complete recordset of rides. This contains information about every active driver and historic ride, including details like city, driver count, individual fares, and city type.

Your objective is to build a Bubble Plot that showcases the relationship between four key variables:

  • Average Fare ($) Per City
  • Total Number of Rides Per City
  • Total Number of Drivers Per City
  • City Type (Urban, Suburban, Rural)

In addition, you will be expected to produce the following three pie charts:

  • % of Total Fares by City Type
  • % of Total Rides by City Type
  • % of Total Drivers by City Type

As final considerations:

  • You must use the Pandas Library and the Jupyter Notebook.
  • You must use the Matplotlib library.
  • You must include a written description of three observable trends based on the data.
  • You must use proper labeling of your plots, including aspects like: Plot Titles, Axes Labels, Legend Labels, Wedge Percentages, and Wedge Labels.
  • Remember when making your plots to consider aesthetics!
    • You must stick to the Pyber color scheme (Gold, Light Sky Blue, and Light Coral) in producing your plot and pie charts.
    • When making your Bubble Plot, experiment with effects like alpha, edgecolor, and linewidths.
    • When making your Pie Chart, experiment with effects like shadow, startangle, and explosion.
  • See Starter Workbook for a reference on expected format.