错误信息:DataFrame object has no attribute dtype 原因:在dataframe.astype(str) 的列的数据类型有object类型 解决方法:将对象的列的数据先转成字符串