Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

import pandas_datareader gives ImportError: cannot import name 'is_list_like'

Asked by Abdul Rehman Jun 21, 2021 1.4K views 1 answer
Share

About this question

I am working in a virtual environment. I am able to import and work in pandas without any error but when I am trying to import pandas_datareader

import pandas as pd

import numpy as np

import matplotlib.pyplot as plt

import datetime as dt

from matplotlib import style

import pandas_datareader as web

it is giving following error -

Traceback (most recent call last):

  File "stock.py", line 6, in

    import pandas_datareader as web

  File "/home/xxxxx/django-apps/env/lib/python3.5/site-packages/pandas_datareader/__init__.py", line 2, in

    from .data import (DataReader, Options, get_components_yahoo,

  File "/home/xxxxx/django-apps/env/lib/python3.5/site-packages/pandas_datareader/data.py", line 14, in

    from pandas_datareader.fred import FredReader

  File "/home/xxxxx/django-apps/env/lib/python3.5/site-packages/pandas_datareader/fred.py", line 1, in

    from pandas.core.common import is_list_like

ImportError: cannot import name 'is_list_like'

(env) xxxxx@xxxxx-yyyyy ~/pyt $ python stock.py

Traceback (most recent call last):

  File "stock.py", line 6, in

    import pandas_datareader

  File "/home/xxxxx/django-apps/env/lib/python3.5/site-packages/pandas_datareader/__init__.py", line 2, in

    from .data import (DataReader, Options, get_components_yahoo,

  File "/home/xxxxx/django-apps/env/lib/python3.5/site-packages/pandas_datareader/data.py", line 14, in

    from pandas_datareader.fred import FredReader

  File "/home/xxxxx/django-apps/env/lib/python3.5/site-packages/pandas_datareader/fred.py", line 1, in

    from pandas.core.common import is_list_like

ImportError: cannot import name 'is_list_like'

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.