pandas 类型转换为int

data[['m']] = data[['m']].astype(int)

若 m 列有空值或者 '' 等都无法转换

可先去除,再转换即可!

原文地址:https://www.cnblogs.com/yu121/p/12963281.html