AnswerBun.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!

Related Questions

Detect if Class has an element inside of certain Class?

1  Asked on November 17, 2021 by ohval

 

Syntax error: missing ‘;’ before ‘*’ with Item class

1  Asked on November 17, 2021 by theandrewjeff

   

Run a query based on the values returned by another query

3  Asked on November 17, 2021 by kevin-d

 

simplfied observer pattern with std::shared_ptr/weak_ptr

1  Asked on November 17, 2021 by fatun

   

Ask a Question

Get help from others!

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