拿到数据集第一件事,查看数据结构 print(df.dtypes)#数据集的数据结构 print(df.index)#查看索引类型 df['C'] =df['C'].astype(int)#强制类型转换 print