package talon

  1. Overview
  2. Docs
A dataframe library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha2.tbz
sha256=93abc49d075a1754442ccf495645bc4fdc83e4c66391ec8aca8fa15d2b4f44d2
sha512=5eb958c51f30ae46abded4c96f48d1825f79c7ce03f975f9a6237cdfed0d62c0b4a0774296694def391573d849d1f869919c49008acffca95946b818ad325f6f

doc/talon.json/Talon_json/index.html

Module Talon_jsonSource

JSON I/O operations for Talon dataframes

Sourceval to_string : ?orient:[ `Records | `Columns ] -> Talon.t -> string

to_string ?orient df converts to JSON string.

  • orient: `Records for row-oriented, `Columns for column-oriented (default `Records)

Null values are represented as JSON null.

Sourceval from_string : ?orient:[ `Records | `Columns ] -> ?dtype_spec: (string * [ `Float32 | `Float64 | `Int32 | `Int64 | `Bool | `String ]) list -> string -> Talon.t

from_string ?orient json creates from JSON string. JSON null values become None/NaN appropriately.

Sourceval to_file : ?orient:[ `Records | `Columns ] -> Talon.t -> string -> unit

to_file ?orient df file writes dataframe to JSON file.

Sourceval from_file : ?orient:[ `Records | `Columns ] -> ?dtype_spec: (string * [ `Float32 | `Float64 | `Int32 | `Int64 | `Bool | `String ]) list -> string -> Talon.t

from_file ?orient file reads dataframe from JSON file.