dataframe.mli 524 Bytes
Newer Older
1 2
type t
type column =
3 4 5 6 7 8
  | Ints of int array
  | Int_opts of int option array
  | Floats of float array
  | Float_opts of float option array
  | Strings of string array
  | String_opts of string option array
9 10 11 12 13

val nrows : t -> int

val ncols : t -> int

14 15 16
val get_col : t -> int -> column option

val get_col_by_name : t -> string -> column option
17

Philippe Veber's avatar
Philippe Veber committed
18 19
val columns : t -> (string * column) list

20 21 22 23
val from_file :
  ?header:[`Read_in_file | `Expect of string list | `Use of string list] ->
  string ->
  (t, [> `Msg of string]) result