draft to read csv

This commit is contained in:
simon petit 2024-11-25 17:13:27 +00:00
parent d7ee32a941
commit 2f0eacf381
4 changed files with 11 additions and 1 deletions

Binary file not shown.

Binary file not shown.

11
lib/csv.ml Normal file
View File

@ -0,0 +1,11 @@
let load path delimiter header filter =
let ic = open_in path in
let rec aux acc =
try
let line = input_line ic
let rows = []
let line = read_line ic in
let columns = String.split_on_char delimiter line in

View File

@ -1 +0,0 @@
let load_csv file_path =