I have almost 1000+ CSV files where I need to shuffle several columns and recreate each CSV file with the shuffled columns. As an example, initial CSV file has "H1", "H2" and "H3" columns. The new CSV file will have columns "H1", "H3" and "H2".
Using FasterCSV in Ruby how would I do it? I have tried FasterCSV::Table
with column_name
access but no luck.
Can some kind soul help?
Regards
K