Skip to content

Commit

Permalink
Add csv example to docs for multiple source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Karneades authored and andymeneely committed May 27, 2019
1 parent 1fb9548 commit cfbcdfe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/dsl/csv.rst
Expand Up @@ -12,6 +12,14 @@ The ``csv`` method is a member of ``Squib::Deck``, but it is also available outs
Squib::Deck.new(cards: data['name'].size) do
end

If you have multiple source files which you would like to concatenate use the following::

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']

Options
-------
Expand Down

0 comments on commit cfbcdfe

Please sign in to comment.