data[['m']] = data[['m']].astype(int)
若 m 列有空值或者 '' 等都无法转换
可先去除,再转换即可!
df3[['列名']] = df3[['列名']].astype(object)