i executed many time the below code it was working very properly now all sudden it has stopped providing financila information of stocks.
infos= for i in final_stock:
infos.append(yf.Ticker(i).info)
info()
Hi Keerti,
Updating yfinance to the latest version should get this code running.
If you are facing any issues on your local system, I recommend you try out the code by creating a fresh notebook on google collab.
You can run the following in the first code cell to install the latest verion of yfinance:
!pip install yfinance
And then, you can try out the code you shared above:
import yfinance as yf
final_stock = ['AAPL','MSFT']
infos=[]
for i in final_stock:
infos.append(yf.Ticker(i).info)
infos
I hope this resolves your doubts.
Do feel free to reach out incase you require additional support from our end.