Conflict between pandas 0.25.0 and pandas-datareader 0.7.0

For Python users, there is a conflict between "pandas 0.25.0" and "pandas-datareader 0.7.0".

If you do an "from pandas_datareader import data", you will got a conflict:

    "ImportError: cannot import name StringIO from pandas.compat"

To get rid of this issue, use "pandas 0.24.2" + "pandas-datareader 0.7.0" instead.

Comments

  1. The pandas version i installed is 0.24.2 and pandas_datareader is 0.7.0 yet im still getting the same error:
    "ImportError: cannot import name StringIO from pandas.compat"

    ReplyDelete
  2. Could you post your code here for me to have a try?

    ReplyDelete

Post a Comment

Popular posts from this blog

Java encoding : UTF-8, Big5, x-MS950-HKSCS