报错:Cannot interpret ‘<attribute ‘dtype‘ of ‘numpy.generic‘ objects>‘ as a data

报错:

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

Cannot interpret ‘’ as a data

问题是由numpy、pandas版本引起的,版本过低,无法将 ‘numpy.generic’ objects>’ 的 '

解决方案:

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

pip install -U numpy
pip install -U pandas

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

你可能感兴趣的:(Tips,机器学习)