Pandas-datareader: The doc testing failed for tiingo

Created on 20 Feb 2018  路  5Comments  路  Source: pydata/pandas-datareader

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

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kumaranu7 picture kumaranu7  路  7Comments

Chandrak1907 picture Chandrak1907  路  4Comments

hmz123 picture hmz123  路  6Comments

nashtgc picture nashtgc  路  7Comments

paintdog picture paintdog  路  7Comments