fix errors in conversion when reading in a CSV file into a dataframe.