Pandas Change Column Data Type To Float Thousands Separator
Given the dataframe df
df['Stake'] = df.Stake.str.replace(',', '')
df['Stake'] = df.Stake.astype('float')
Given the dataframe df
df['Stake'] = df.Stake.str.replace(',', '')
df['Stake'] = df.Stake.astype('float')