报错:

  • 运行info()或者describe()报错:

Cannot interpret ‘<attribute ‘dtype’ of ‘numpy.generic’ objects>’ as a data

问题是由numpy、pandas版本引起的,版本过低,无法将 ‘numpy.generic’ objects>’ 的 '<attribute ‘dtype’ 解释为数据类型。

解决方案:

分别更新numpy、pandas到新版本:

pip install -U numpy
pip install -U pandas

如果pip需要更新,可尝试:pip install --user --upgrade pip

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐