bitcoin[['Dernier']] = bitcoin[['Dernier']].astype(float)
if copy or is_object_dtype(arr) or is_object_dtype(dtype):
# Explicit copy, or required since NumPy can't view from / to object.
return arr.astype(dtype, copy=True)
return arr.view(dtype)
输出:
ValueError:无法将字符串转换为float:'7.112,9'