I want to print out SPY's stock data however it keeps shows typeerror: string indices must be integer
import pandas_datareader.data as web
spy = web.get_data_yahoo('SPY',start='2022-12-23',end='2022-10-24')
print(spy)
I want to print out SPY's stock data however it keeps shows typeerror: string indices must be integer
import pandas_datareader.data as web
spy = web.get_data_yahoo('SPY',start='2022-12-23',end='2022-10-24')
print(spy)
Copyright © 2021 Jogjafile Inc.
I would solve for this way:
I think it will work.