错误信息:DataFrame object has no attribute dtype

原因:在dataframe.astype(str)  的列的数据类型有object类型

解决方法:将对象的列的数据先转成字符串

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐