I am not able to use quandl to import the data.
Code:
import quandl
mydata_01 = quandl.get("FRED/GDP")
Sharing the screenshots of the error:



import quandl
mydata_01 = quandl.get("FRED/GDP")
Sharing the screenshots of the error:
2 answers ( 0 marked as helpful)
Resolved: python was not able to connect to the NASDAQ server. This works using pandas datareader:
import pandas_datareader.data as wb
gdp_data = wb.DataReader('GDP', 'fred', start='1947-01-01')
import pandas_datareader.data as wb
gdp_data = wb.DataReader('GDP', 'fred', start='1947-01-01')
Hi Abhishek!
Thanks for reaching out.
Thanks for flagging this!
The quandl.get("FRED/GDP") approach is not the recommended one for this lesson, since Quandl / Nasdaq Data Link may return access errors such as 403 . Please use the FRED version locally in Jupyter instead:import pandas_datareader.data as wb
gdp_data = wb.DataReader('GDP', 'fred', start='1947-01-01')
This is the more reliable option for the course in case of access or installation conflicts.
Hope this helps.
Best,
Tsvetelin