price = df[df["day"]==0]["close"]
float(price)
error: ValueError: Unable to parse string "15,181.80" at position 0
SOLUTION: df["close"] = df["close"].str.replace(',', '').astype(float)
price = df[df["day"]==0]["close"]
float(price)
error: ValueError: Unable to parse string "15,181.80" at position 0
SOLUTION: df["close"] = df["close"].str.replace(',', '').astype(float)