This project is part of the IBM Data Science Certification program, where stock and revenue data for Tesla and GameStop are extracted and analyzed.
- Use the
yfinance
library to extract stock data for Tesla with the ticker symbol TSLA. - Create a ticker object for Tesla.
- Extract stock information using the
history
function and save it in a DataFrame namedtesla_data
. - Set the period parameter to max to get information for the maximum amount of time.
- Reset the index of the DataFrame and display the first five rows of the data.
- Use the
requests
library to download the webpage containing Tesla revenue data. - Save the text of the response as a variable named
html_data
. - Parse the HTML data using BeautifulSoup.
- Extract the table with Tesla revenue data and store it in a DataFrame named
tesla_revenue
. - Remove commas and dollar signs from the Revenue column.
- Drop any null or empty strings in the Revenue column.
- Display the last five rows of the
tesla_revenue
DataFrame.
- Use the
yfinance
library to extract stock data for GameStop with the ticker symbol GME. - Create a ticker object for GameStop.
- Extract stock information using the
history
function and save it in a DataFrame namedgme_data
. - Set the period parameter to max to get information for the maximum amount of time.
- Reset the index of the DataFrame and display the first five rows of the data.
- Use the
requests
library to download the webpage containing GameStop revenue data. - Save the text of the response as a variable named
html_data
. - Parse the HTML data using BeautifulSoup.
- Extract the table with GameStop revenue data and store it in a DataFrame named
gme_revenue
. - Remove commas and dollar signs from the Revenue column.
- Drop any null or empty strings in the Revenue column.
- Display the last five rows of the
gme_revenue
DataFrame.
- Use the
make_graph
function to graph the Tesla stock data. - Provide a title for the graph.
- Note that the graph will only show data up to June 2021.
- Use the
make_graph
function to graph the GameStop stock data. - Provide a title for the graph.
- Note that the graph will only show data up to June 2021.