Skip to content

Combine Multiple CSV Files

Karneades edited this page May 28, 2019 · 1 revision

If you have multiple source CSV files which you would like to concatenate use the following snippet. It allows splitting different card types into different source files but when building the card deck have all cards available in one variable.

  cards1 = Squib.csv file: 'cards1.tsv', col_sep: "\t"
  cards2 = Squib.csv file: 'cards2.tsv', col_sep: "\t"

  all_cards = cards1
  all_cards['column1'] += cards2['column1']
  all_cards['column2'] += cards2['column2']
Clone this wiki locally