I have checked the document and found the doc testing was failed for tiingo channel.
In [7]: import os
In [8]: import pandas_datareader as pdr
In [9]: df = pdr.get_data_tiingo('GOOG', api_key=os.getenv('TIINGO_API_KEY'))
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-9-c390cc1bcafe> in <module>()
----> 1 df = pdr.get_data_tiingo('GOOG', api_key=os.getenv('TIINGO_API_KEY'))
AttributeError: module 'pandas_datareader' has no attribute 'get_data_tiingo'
In [10]: df.head()
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-10-c42a15b2c7cf> in <module>()
----> 1 df.head()
NameError: name 'df' is not defined
Should be import pandas_datareader.data as pdr
Additionally, I have added Tiingo to the Table of Contents in a PR here: https://github.com/pydata/pandas-datareader/pull/509
Thanks all. Let me know if I can help in any other way
Rishi
With https://github.com/pydata/pandas-datareader/pull/509 merged, can this issue be closed? Thanks
Can someone please update the docs and use this:
import pandas_datareader.data as pdr
This has been fixed in the docs.