解决ValueError: cannot convert float NaN to integer

由于pandas版本0.24.0,数据类型:

 

data['id']=data['id'].astype('Int64')

 

posted @ 2021-03-29 16:16  cup_leo  阅读(1998)  评论(0编辑  收藏  举报