Skip to main content

Module data_input

Module data_input 

Source
Expand description

Data-context loading from JSON or CSV files for zenith render --data.

load_data_context reads a JSON object/array or CSV file and returns a DataContext populated with flat string scalar fields AND named array columns. JSON nested objects are flattened to dot-paths (revenue.total); JSON arrays become named columns in arrays. CSV takes the first data row for scalar fields and ALL rows as per-column arrays.

Structs§

DataInputError
Error produced while loading a data context file.

Functions§

load_data_context
Load a DataContext from path.