- 博客(1)
- 收藏
- 关注
原创 关于Data_frame
如何去除数据值中的逗号data_frame = pd.read_csv(input_file)data_frame[‘Cost’] = data_frame[‘Cost’].str.strip(’$’).replace(’,’,’’).astype(float)程序执行了以上语句后,仍然显示ValueError: could not convert string to float: '6,0...
2019-09-17 23:04:15 300 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人