Hi! Regarding to this video: https://www.youtube.com/watch?v=Iqjy9UqKKuo
I used import pandas_datareader.data as web but I'm still getting error:
Traceback (most recent call last): File "C:/Users/Pawel/PycharmProjects/pandas/pandas.py", line 1, in <module> import pandas as pd File "C:UsersPawelPycharmProjectspandaspandas.py", line 3, in <module> import pandas_datareader.data as web File "C:UsersPawelAppDataLocalProgramsPythonPython35libsite-packagespandas_datareader__init__.py", line 3, in <module> from .data import (get_components_yahoo, get_data_famafrench, get_data_google, get_data_yahoo, get_data_enigma, # noqa File "C:UsersPawelAppDataLocalProgramsPythonPython35libsite-packagespandas_datareaderdata.py", line 7, in <module> from pandas_datareader.google.daily import GoogleDailyReader File "C:UsersPawelAppDataLocalProgramsPythonPython35libsite-packagespandas_datareadergoogledaily.py", line 1, in <module> from pandas_datareader.base import _DailyBaseReader File "C:UsersPawelAppDataLocalProgramsPythonPython35libsite-packagespandas_datareaderbase.py", line 7, in <module> import pandas.compat as compat ImportError: No module named 'pandas.compat'; 'pandas' is not a package
You must be logged in to post. Please login or register an account.
You've called both your script, and the directory you are working in "pandas."
You need to change both, since you're going to import locally first. Never call a directory you work in or your script itself the same as any modules you might be using.
-Harrison 8 years ago
You must be logged in to post. Please login or register an account.
Thanks you so much, it helped me!
-paavo91 8 years ago
You must be logged in to post. Please login or register an account.