package talon
A dataframe library for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
raven-1.0.0.alpha1.tbz
sha256=8e277ed56615d388bc69c4333e43d1acd112b5f2d5d352e2453aef223ff59867
sha512=369eda6df6b84b08f92c8957954d107058fb8d3d8374082e074b56f3a139351b3ae6e3a99f2d4a4a2930dd950fd609593467e502368a13ad6217b571382da28c
doc/talon.csv/Talon_csv/index.html
Module Talon_csv
Source
CSV I/O operations for Talon dataframes
Source
val read :
?sep:char ->
?header:bool ->
?na_values:string list ->
?dtype_spec:
(string * [ `Float32 | `Float64 | `Int32 | `Int64 | `Bool | `String ]) list ->
string ->
Talon.t
read ?sep ?header ?na_values ?dtype_spec file
reads CSV file.
- sep: delimiter (default ',')
- header: first row contains column names (default true)
- na_values: strings to interpret as null (default
"", "NA", "N/A", "null", "NULL"
) - dtype_spec: column types (auto-detected if not provided)
Null handling:
- Empty strings and na_values become None for strings, NaN for floats
- Invalid numeric values become NaN/None
- Auto-detection treats columns with nulls as nullable
write ?sep ?header ?na_repr df file
writes to CSV.
- sep: delimiter (default ',')
- header: write column names as first row (default true)
- na_repr: string representation of nulls (default "")
Null values are written as na_repr (empty string by default).
to_string ?sep ?header ?na_repr df
converts dataframe to CSV string.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>