NIFTY Smallcap 250 data is not available in NSE Python library. Please add it.
Tell me where is this data available in the main NSE website. I will add it.
https://www.niftyindices.com/indices/equity/broad-based-indices/nifty-smallcap-250
https://www.nseindia.com/products-services/indices-niftysmallcap250-index
It has a stupid CSV. Seeā¦
Just do
csv_url = "https://nsearchives.nseindia.com/content/indices/ind_niftysmallcap250list.csv"
df = pd.read_csv(csv_url)
This doesnt contain daily value of this index. The python library is giving an empty dataframe.
https://nsearchives.nseindia.com/content/indices/ind_niftysmallcap250list.csv
The python is fetching this URL. Try opening this in your browser. It will give you blank output if NSE themselves give the blank output.
Sometime it happens.
Just retry in such a case. If it is wrong, share back.