marklister / product-collections

A very simple, strongly typed, scala framework for tabular data. A collection of tuples. A strongly typed scala csv reader and writer. A lightweight idiomatic dataframe / datatable alternative.
BSD 2-Clause "Simplified" License
144 stars 19 forks source link

Add a way to drop header rows when parsing CSV. #28

Closed ClintCombs closed 9 years ago

ClintCombs commented 9 years ago

Is there an existing mechanism to drop a header row when parsing CSV files? If not, what do you think is the most effective option for adding this?

marklister commented 9 years ago

There's a parameter hasHeader:Boolean eg:

CsvParser[Int,String].parse(reader=.... , hasHeader=true)

I'm sorry I'm busy updating the doc for v1.4.0

Here's the scaladoc for v1.3.0

marklister commented 9 years ago

The old README is correct doc to read for v1.3.0. Sorry about the flux.

ClintCombs commented 9 years ago

Thanks, that's what I needed!