kantan.csv
kantan.csv copied to clipboard
CSV handling library for Scala
Does anyone have an example of a RowEncoder with either multiple case classes or HLIST? We are trying to use `RowEncoder.caseEncoder`but our tuples are limited to 22 fields. We found...
Hi! Trying to use your library and it does not seem to want to work. I took your example code and pasted it into a worksheet with all required imports....
I'm processing a csv file with X number of columns which are not all mandatory i.e some of them are optional. ``` csv.asCsvReader[Foo](rfc.withHeader) object Foo { implicit val FooDecoder: HeaderDecoder[Foo]...
Hi, -i have this case where i need to read a very large csv file, filter some of the line based on some criteria and then write the ouptput in...
this code become to decode error. ```scala import kantan.csv.java8._ import kantan.csv._ import kantan.csv.ops._ val x = """a, 2019-10-12""".stripMargin.readCsvRow[(String, LocalDate)](rfc) println(x) // Left(TypeError: ' 2019-10-12' is not a valid LocalDate) ```...
Would be nice to detect what the separator is. For instance by looking at the header. I have files that are either comma or semicolon...
Thanks for creating awesome library. Scala.js 1.0.0 was finally published on 2020-2-5. I wish I could use `kantan.csv` on Scala.js 1.0.0. (Currently I use kantan.csv on Scala.js 0.6.32) I would...
Hi! I'm trying to create a `CellCodec` that encodes/decodes `Option[E]` values in a way that: 1. Option[E].empty values are encoded to `-` instead of an empty cell 2. `-` values...
As a simplified example, let's say I'm parsing a file like this, which contains five lines but only three records (with two fields: a `String` and an `Int`): ``` abc,123...
It'd be nice for errors to come tagged with the row number at which they arrive. Keeping track of this is fairly straightforward, we need only keep a counter in...