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