复现代码
使用get_dtype_counts()函数时出现如下错误
‘DataFrame’ object has no attribute ‘get_dtype_counts’
问题原因:我安装的pandas版本是1.1.1
根据下文指出 pandas 0.25之后的版本后应该更改此命令为
.dtypes.value_counts()
更改后成功运行
https://www.cjavapy.com/article/478/
pandas版本导致错误‘DataFrame‘ object has no attribute ‘get_dtype_counts‘
最新推荐文章于 2024-03-24 11:37:22 发布