I am working with a CSV file that contains 2 columns, the first a date column with format yyyymmdd, the second a string value that is in the format of a float, 0.0 for example.<
You are not storing the updated float type. You have to assign it back.
float
do this:
rain_amount=float(rain_amount)