Gin04gh / datascience

42 stars 22 forks source link

pandas-datareaderがimport errorを起こす現象 #3

Closed ito-albert closed 6 years ago

ito-albert commented 6 years ago
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-2e4c80cba76e> in <module>()
      3 import matplotlib
      4 import matplotlib.pylab as plt
----> 5 import pandas_datareader.data as pdd
      6 from statsmodels.tsa import stattools

/opt/conda/lib/python3.6/site-packages/pandas_datareader/__init__.py in <module>()
      1 from ._version import get_versions
----> 2 from .data import (DataReader, Options, get_components_yahoo,
      3                    get_dailysummary_iex, get_data_enigma, get_data_famafrench,
      4                    get_data_fred, get_data_google, get_data_moex,
      5                    get_data_morningstar, get_data_quandl, get_data_stooq,

/opt/conda/lib/python3.6/site-packages/pandas_datareader/data.py in <module>()
     12     ImmediateDeprecationError
     13 from pandas_datareader.famafrench import FamaFrenchReader
---> 14 from pandas_datareader.fred import FredReader
     15 from pandas_datareader.google.daily import GoogleDailyReader
     16 from pandas_datareader.google.options import Options as GoogleOptions

/opt/conda/lib/python3.6/site-packages/pandas_datareader/fred.py in <module>()
----> 1 from pandas.core.common import is_list_like
      2 from pandas import concat, read_csv
      3 
      4 from pandas_datareader.base import _BaseReader
      5 

ImportError: cannot import name 'is_list_like'
Gin04gh commented 6 years ago

解決。datascience/samples_python/adf_test_statsmodels.ipynb クローズ。