数据类型转换之后为什么类型还是str?

原数据是字符串类型的数字,为什么转换之后数据类型为什么还是str呢?

如图所示,输出结果为str

img

type(int(df.iloc[0,30]))

返回值没有接收啊,例如
df.iloc[0,30] = df.iloc[0,30].astype('float')
手机敲的,你自己改改验证一下结果吧