Amish_Shah
(Amish Shah)
1
Previously data was easily downloaded, but now it is showing the following error. How to resolve this?
Failed to get ticker ‘NSEI’ reason: Expecting value: line 1 column 1 (char 0)
[100%**] 1 of 1 completed
1 Failed download:
[‘NSEI’]: YFTzMissingError(‘$%ticker%: possibly delisted; no timezone found’)
Hi Amish,
You can try using ^NSEI to download NIFTY 50 Index prices:
#!pip install --upgrade yfinance # uncomment to upgrade yfinance
import yfinance as yf
nsei = yf.download("^NSEI", period="1y")
Let us know if you run into any issues. If you do, please share the yfinance library version. You can check it using the following code:
print("yfinance version:", yf.__version__)
Older versions of yfinance reported errors last week: Issue #2329. Many users were able to resolve the issue by upgrading to the latest version.
Still it is showing the same error. I upgraded yfinance also.
yfinance version: 0.2.50
Hi Amish,
The latest version of yfinance is 0.2.54.
Please run the following command to upgrade:
pip install yfinance==0.2.54
You can also find more information here: yfinance · PyPI
If you are using a Jupyter Notebook, please restart the kernel after installation.
Could you please upgrade to the latest version and then re-check?
Yes now its done.
Thank you so much for your assistance