convert pandas series to type float code example
Example 1: how to convert a pandas series from int to float in python
df['DataFrame Column'] = df['DataFrame Column'].astype(float)
Example 2: convert price to float pandas
df[df.columns[1:]] = df[df.columns[1:]].replace('[\$,]', '', regex=True).astype(float)