First, I want to say that unfortunately, Yahoo! has changed their API and currently this breaks the implementation in pandas-datareader. It is not known if this will be fixed. Therefore, the examples will only use Google Finance.
To use the pandas-datereader package, we use the following import:
Stock data from Google Finance can then be objected using the DataReader function by passing it the stock symbol, the data source (in this case, 'google'), and the start and end dates: