Converted data into csv file
Fixed str/decimal type error