In your case, you can do this: df['x'] = df['x'].str.replace(':','.').astype(float). Output: x. 0 27.47. 1 13.45. 2 10.45.
確定! 回上一頁