Skip to content

Analysis of Tesla (TSLA) and GameStop (GME) financials using Yahoo Finance API and web scraping. Includes data cleaning with pandas/numpy and visualization with matplotlib. Demonstrates skills in APIs, BeautifulSoup, and end-to-end data analysis.

Notifications You must be signed in to change notification settings

MohamedNasserIV/Python-Project-for-Data-Science

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Python-Project-for-Data-Science

Tesla & GameStop Revenue Analysis

This project explores Tesla (TSLA) and GameStop (GME) financial data using a mix of APIs and web scraping.
It combines Python libraries such as yfinance, pandas, numpy, matplotlib, and BeautifulSoup to gather, clean, and visualize revenue data.


πŸ“Œ Project Overview

  • Yahoo Finance API (yfinance) β†’ Download stock price history.
  • Web Scraping (BeautifulSoup) β†’ Extract Tesla and GameStop revenue tables from web pages.
  • Data Cleaning (pandas, numpy) β†’ Parse dates, clean revenue values, handle missing data.
  • Data Visualization (matplotlib) β†’ Plot revenue trends and stock prices over time.

βš™οΈ Libraries Used

  • pandas
  • numpy
  • matplotlib
  • yfinance
  • BeautifulSoup (bs4)
  • requests

πŸ“Š Key Steps

  1. Scraping Revenue Data from company financial tables.
  2. Fetching Stock Prices from Yahoo Finance API.
  3. Merging & Cleaning Data: date parsing, revenue formatting, handling nulls.
  4. Visualization: plotting stock performance vs. revenue.

πŸš€ How to Run

  1. Clone this repository:
    git clone https://github.com/your-username/tesla-gme-revenue-analysis.git
    cd tesla-gme-revenue-analysis
    

About

Analysis of Tesla (TSLA) and GameStop (GME) financials using Yahoo Finance API and web scraping. Includes data cleaning with pandas/numpy and visualization with matplotlib. Demonstrates skills in APIs, BeautifulSoup, and end-to-end data analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published