Function pretty_format_batches

pub fn pretty_format_batches(
    results: &[RecordBatch],
) -> Result<impl Display, ArrowError>
Expand description

Create a visual representation of RecordBatches

Uses default values for display. See pretty_format_batches_with_options for more control.

ยงExample

// Note, returned object implements `Display`
let pretty_table = pretty_format_batches(&[batch]).unwrap();
let table_str = format!("Batches:\n{pretty_table}");
assert_eq!(table_str,
r#"Batches:
+---+---+
| a | b |
+---+---+
| 1 | a |
| 2 | b |
| 3 |   |
| 4 | d |
| 5 | e |
+---+---+"#);