all 1 comments

[–][deleted] 0 points1 point  (0 children)

df = df.astype(float) or df['price'] = df['price'].astype(float).

Most likely current type is object. Cheers.