Comparing two columns of a csv and outputting string similarity ratio in another csv
问题 I am very new to python programming. I am trying to take a csv file that has two columns of string values and want to compare the similarity ratio of the string between both columns. Then I want to take the values and output the ratio in another file. The csv may look like this: Column 1|Column 2 tomato|tomatoe potato|potatao apple|appel I want the output file to show for each row, how similar the string in Column 1 is to Column 2. I am using difflib to output the ratio score. This is the