TransWikia.com

pandas does not load the sub packages properly

Stack Overflow Asked by realbro on November 29, 2020

I kindly ask your help for following error:

runfile('C:/Users/PCUSER/Downloads/feature_engineering.py', wdir='C:/Users/PCUSER/Downloads')
Traceback (most recent call last):

  File "C:UsersPCUSERDownloadsfeature_engineering.py", line 33, in <module>
    import pandas_datareader.data as web

  File "C:UsersPCUSERanaconda3_newenvstflibsite-packagespandas_datareader__init__.py", line 2, in <module>
    from .data import (

ImportError: cannot import name 'DataReader' from 'pandas_datareader.data' (C:UsersPCUSERanaconda3_newenvstflibsite-packagespandas_datareaderdata.py)

The package installer are

  • pandas=1.0.5
  • pandas-datareader=0.8.1

on python 3.7

package are not the most updated. I’m using the same od the script i want to replicate. (full code here: https://github.com/PacktPublishing/Hands-On-Machine-Learning-for-Algorithmic-Trading/tree/master/Chapter04/00_data)

even with most update packages does not work

thanks a lor for your help

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP