package talon
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A dataframe library for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
raven-1.0.0.alpha2.tbz
sha256=93abc49d075a1754442ccf495645bc4fdc83e4c66391ec8aca8fa15d2b4f44d2
sha512=5eb958c51f30ae46abded4c96f48d1825f79c7ce03f975f9a6237cdfed0d62c0b4a0774296694def391573d849d1f869919c49008acffca95946b818ad325f6f
doc/talon.csv/Talon_csv/index.html
Module Talon_csvSource
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.tread ?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)"
>