Skip to main content

datatable_to_content_node

Function datatable_to_content_node 

Source
pub fn datatable_to_content_node(
    dt: &DataTable,
    max_rows: Option<usize>,
) -> ContentNode
Expand description

Convert a DataTable (Arrow RecordBatch wrapper) to a ContentNode::Table.

Extracts column names as headers, determines column types from the Arrow schema, and converts each cell to a plain text ContentNode. Optionally limits the number of rows displayed.