-
I have two CSV files with many columns. The exact number and name of the columns might vary, but there is always a column
What I am doing here is to join both files on their id, add XXX as prefix to the fields from the left file, then rename the field I am interested in and finally remove all XXX fields since they are no longer needed. The drawback is that the left file contains ~50 fields, some of which contain really long strings. So, I join this, which creates a really wide table, just to delete most of it afterwards. Also, the code is not that readable. Another question: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Please could you add two sample input files (only some example rows and not all the fields) and the output you should want from these? |
Beta Was this translation helpful? Give feedback.
-
@masgo it should be pretty easy to add a |
Beta Was this translation helpful? Give feedback.
@masgo it should be pretty easy to add a
--left-keep-fields id,data
so that while the left file is being ingested, only those fields will be included.