drop CSV header
This commit is contained in:
parent
1b46a4c05c
commit
913f865fbd
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,8 @@ fn read_csv() -> List(#(String, String)) {
|
||||||
contents
|
contents
|
||||||
// the file doesn't use quotes, so this is fine
|
// the file doesn't use quotes, so this is fine
|
||||||
|> string.split(on: "\n")
|
|> string.split(on: "\n")
|
||||||
|
// drop CSV header
|
||||||
|
|> list.drop(1)
|
||||||
|> list.map(fn(a) { string.split(a, on: ";") })
|
|> list.map(fn(a) { string.split(a, on: ";") })
|
||||||
|> list.filter_map(fn(fields) {
|
|> list.filter_map(fn(fields) {
|
||||||
case fields {
|
case fields {
|
||||||
|
|
Loading…
Reference in a new issue