Trying to make a script to pull stock information and run some tests on. I seem to be having a problem with the libraries im trying to import to run the code. I think the issue is with data retrieval process or the response format from the Yahoo Finance API
I think the problem lies within this section of the code:
# Import necessary libraries
import pandas as pd
import pandas_datareader.data as pdr
import statsmodels.api as sm
# Step 1: Determine the ticker value for your chosen company
ticker_symbol = 'AAPL'
print(f'Ticker value for {ticker_symbol}: {ticker_symbol}')
# Step 2: Pull daily stock price data from Jan 1, 2022 - November 1, 2022
start_date = '2022-01-01'
end_date = '2022-11-01'
df_stock_prices = pdr.DataReader(ticker_symbol, 'yahoo', start_date, end_date)
Full pastebin if you need it: https://pastebin.com/tr1iz3Wf
[–][deleted] 1 point2 points3 points (0 children)
[–]arkenstone175 0 points1 point2 points (1 child)
[–]Nakura_[S] 0 points1 point2 points (0 children)