关于出现AttributeError: module 'pandas' has no attribute 'DataFrame'的问题

刚刚下载了一下pandas,报错AttributeError: module 'pandas' has no attribute 'DataFrame',
并且导致我原来使用的matplotlib也有问题,也是同样的报错,不知道怎么解决。

这是matplotlib的运行

img


这是pandas的运行

img

你看看你是不是自己写了一个pandas.py的文件,导致模块引用错误,删掉即可。

是不是版本太老了 ,更新一下试试

img