csvdedupe icon indicating copy to clipboard operation
csvdedupe copied to clipboard

csvlink with different columns

Open joernhees opened this issue 7 years ago • 0 comments

I have a use-case for csvlink with two files containing different amounts of columns. There is no clear 1:1 mapping of colX from file1 to colY from file2.

Looking at the code i don't understand what the intention of this is: https://github.com/dedupeio/csvdedupe/blob/e4ed504b72a05c1594ee403859f13784d35ef422/csvdedupe/csvlink.py#L91-L97

It looks as if data_2 records are re-written pairwise into the field names of file 1... if the field names have different lengths things are dropped. Is that meant to happen?

joernhees avatar May 19 '18 15:05 joernhees