报错:Cannot interpret ‘<attribute ‘dtype‘ of ‘numpy.generic‘ objects>‘ as a data
问题是由numpy、pandas版本引起的,版本过低,无法将‘numpy.generic’objects>’的'
·
报错:
- 运行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
更多推荐
已为社区贡献3条内容
所有评论(0)