1.问题:
在使用df.info()时报错:TypeError: Cannot interpret ‘<attribute ‘dtype‘ of ‘numpy.generic‘objects>‘as a data type
2.查资料
在网页上搜索了几种方法,总结如下:
(1)更新numpy, pandas:
pip install -U numpy
pip install -U pandas
或者
conda install numpy
conda install pandas
(2)更新所有包
conda update -n base conda
3.结果
我是使用了第二种方法才解决的,但是更新时间比较长,用时大约2小时。大家赶紧试一试吧!
如何解决TypeError: Cannot interpret ‘<attribute ‘dtype‘ of ‘numpy.generic‘objects>‘as a data type
于 2022-04-02 18:54:09 首次发布
