Pandas Change Column Data Type To Float Thousands Separator
Pandas: convert a column with thousands separators to float#
Given the DataFrame df, remove commas from the Stake column and convert it to float:
df['Stake'] = df['Stake'].str.replace(',', '', regex=False)
df['Stake'] = df['Stake'].astype(float)