1
$\begingroup$

I am trying to do a basic project where I grab some data from Morningstar or Google Finance, but when I import the package according to the usage instructions on GitHub and run Python in Pycharm, it returns the error:

ImportError: cannot import name 'is_list_like'

What should I do? Obviously, I am doing something wrong.

$\endgroup$

1 Answer 1

1
$\begingroup$

BEFORE you import pandas_datareader, run this:

pd.core.common.is_list_like = pd.api.types.is_list_like

where pd stands for your pandas import.

Let me know if this works :)

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.