It’s possible by the time you are reading this that Yahoo! Finance no longer exists since Yahoo! was acquired by Verizon in 2017. Refer to the pandas-datareader documentation online for the latest functionality.
I was able to use quandl by simply replacing the get_data_yahoo with get_data_quandl
Share this highlighthttp://www.safaribooksonline.com/a/python-for-data/11791743/