Coder Social home page Coder Social logo

hanyang2019 / the_power_of_plots Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.79 MB

Python Pandas & Matplotlib Analysis of Ride Sharing Data and Pharmaceutical Data

Jupyter Notebook 100.00%
data-visualization python3 pandas matplotlib numpy jupyter-notebook csv bubble-chart pie-chart scatter-plot error-bars barchart

the_power_of_plots's Introduction

driving

Project Pymber

Background

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. As Chief Data Strategist for the company, 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.


Objectives

  1. 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)
  1. Produce the following three pie charts:
  • % of Total Fares by City Type
  • % of Total Rides by City Type
  • % of Total Drivers by City Type

Results

  • Buble Plot of Sharing Data Buble Plot of Sharing Data
  • Total Fares by City Type

Total Fares by City Type

  • Total Rides by City Type

Total Rides by City Type

  • Total Drivers by City Type

Total Drivers by City Type


Conclusion

  1. The prevalence of Pyber in a city correlates with its extent of urbanization. People in urban cities are more likely to take Pyber rides than those in suburban and rural cities.
  2. There are much more Pyber drivers in urban cities than the other two city types combined.
  3. Rural riders tend to spend more money on a single ride than riders in urban and suburban cities.

pharmaceutical

Project Pymerceuticals

Background

Pymaceuticals Inc. is a burgeoning pharmaceutical company specializing in drug-based, anti-cancer pharmaceuticals. In their most recent efforts,they've since begun screening for potential treatments to squamous cell carcinoma (SCC), a commonly occurring form of skin cancer.

As their Chief Data Analyst, you've been given access to the complete data from their most recent animal study. In this study, 250 mice were treated through a variety of drug regimes over the course of 45 days. Their physiological responses were then monitored over the course of that time.


Objectives

Analyze the data to show how four treatments (Capomulin, Infubinol, Ketapril, and Placebo) compare.

  • Create a scatter plot that shows how the tumor volume changes over time for each treatment.
  • Create a scatter plot that shows how the number of metastatic (cancer spreading) sites changes over time for each treatment.
  • Create a scatter plot that shows the number of mice still alive through the course of treatment (Survival Rate)
  • Create a bar graph that compares the total % tumor volume change for each drug across the full 45 days.

Results

  • Tumor Response to Treatment Tumor Response to Treatment
  • Metastatic Response to Treatment Metastatic Response to Treatment
  • Survival Rates Survival Rates
  • Summary Bar Graph Summary Bar Graph

Conclusion

  1. Only two, capomulin and ramicane, out of 10 drugs have successfully reduced the total tumor volume in mice.
  2. Ramicane, followed by capomulin, showed the strongest capacity to reduce metastasis in comparison to other treatments.
  3. Both capomulin and ramicane out-ranked other treatments in terms of survival rate.

the_power_of_plots's People

Contributors

hanyang2019 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.