python convert df data column string to float code example Example: string to float python pandas df['DataFrame Column'] = df['DataFrame Column'].astype(float)