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
$\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, privacy policy and cookie policy

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