Followed videos and made setup.
Tried below code with attached CSV file , but blocking at Line 10. Can you please help me
Its showing like this & never coming out
C:\Users\Veera\Downloads\ind_niftysmallcap250list_veera.csv
1 import yfinance as yf
2 import pandas as pd
3 import csv
4
5 df= pd.read_csv (‘http://10.10.10.28/ind_niftysmallcap250list_veera.csv’)
6 dataset = {}
7
8 for index, row in df.iterrows():
9 grse = yf.Ticker(row[“Company Name”])
10 hist = grse.history(period=“1y”)
11 hist[‘ticker’]=row[“Company Name”]
12 dataset[row[“Company Name”]] = hist
13 stock_data = pd.concat(dataset)
14 print(stock_data)
if i execute only from line 1 to 9 , its working till that level
Subscribe To Our Free Newsletter |