logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

AttributeError: module ‘pandas‘ has no attribute ‘DataFrame‘ 报错解决 Python Pandas

问题在我们新建DataFrame时,例如import pandas as pddf = pd.DataFrame()可能会出现报错AttributeError: module ‘pandas’ has no attribute ‘DateFrame’分析这是一个挺奇怪的问题,让人抓不着头脑:我明明大小写都拼写对了啊!为啥就报错呢?原因出在版本问题~较老版本的pandas会报错,而新版本的不会。解决

#bug#pip#python +1
到底了