Thursday, July 18, 2019

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.

2 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

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...