Importing data from quandl and yahoo

hello,



i do get error when i enter shift importing data from quandl and yahoo. this is what i got:

 

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-7-216732625da6> in <module>()
      3 
      4 # quantrautil is a module specific to Quantra to fetch stock data
----> 5 from quantrautil import get_quantinsti_api_key
      6 
      7 api_key = get_quantinsti_api_key()

ModuleNotFoundError: No module named 'quantrautil'


and

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-8-83e22b09b5b4> in <module>()
      4 
      5 import pandas as pd
----> 6 from pandas_datareader import data
      7 data = data.get_data_yahoo('AAPL', '2017-01-01', '2018-01-01')
      8 data.head()

ModuleNotFoundError: No module named 'pandas_datareader'

please advise on what should i do?.. and how do i attach an image in a new post?

thank you


Hi Rino,



To solve the quantrautil related errors, you can refer to the post below

Learn algorithmic trading from top institutions and experts | Quantra by QuantInsti



pandas_datareader does have some problems in fetching data. You can alternatively use fix_yahoo_finance to fetch the data from yahoo finance. 

import fix_yahoo_finance as yf
data = yf.download("SPY", start="2017-01-01", end="2017-04-30")

Thanks