Module 'pandas_datareader.data' error message

Dear Sir or Madame,





Please, refer to section 3, Unit 3 of Python for Treading course or section 3.7 of its e-book "Relative Strength Index"

I've been testing your code



import pandas as pd

import numpy as np

from pandas_datareader import data as web

import matplotlib.pyplot as plt



df = web.get_data_google('GLD', start='2012')







And I get the following error message:

 

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-14-7376dfb6e213> in <module>
      1 #Importación de los datos
----> 2 df = web.get_data_google('GLD', start='2012')
      3 df = df.dropna() #Borra los datos que contengan algún dato nulo NaN

AttributeError: module 'pandas_datareader.data' has no attribute 'get_data_google'

It seems that get_data_google is not an attribute of pandas_datareader



Please, send me a code update for this library



Thanks

Thanks for your query. I ran this code on google colab:  https://colab.research.google.com/drive/1eIfKaSES4zE4rCRsFXCVb2vmxoy0zxvI  and here is the message it gives me from pandas: " ImmediateDeprecationError: Google finance has been immediately deprecated due to large breaks in the API without the introduction of a stable replacement. Pull Requests to re-enable these data connectors are welcome.



So, it will be better if you use something like yahoo fiance like I have done in the colab notebook. We will update this as soon as possible. Do revert if needed.