python dataframe 某一列string转int 字符转数字 python could not convert string to float

 df_raw['PricePerSeat_Outdoor'] = df_raw['PricePerSeat_Outdoor'].apply(pd.to_numeric,errors='coerce')

,errors=‘coerce’ 未知可不加

猜你喜欢

转载自blog.csdn.net/qq_27866857/article/details/121454282