Skip to main content

Module pretty

Module pretty 

Source
Expand description

Utilities for pretty printing RecordBatches and Arrays.

Note this module is not available unless feature = "prettyprint" is enabled.

Re-exportsยง

use arrow_array::Array; ๐Ÿ”’
use arrow_array::ArrayRef; ๐Ÿ”’
use arrow_array::RecordBatch; ๐Ÿ”’
use arrow_schema::ArrowError; ๐Ÿ”’
use arrow_schema::SchemaRef; ๐Ÿ”’
use comfy_table::Cell; ๐Ÿ”’
use comfy_table::LineStyle; ๐Ÿ”’
use comfy_table::Table; ๐Ÿ”’
use comfy_table::TableStyle; ๐Ÿ”’
use comfy_table::presets::ASCII_FULL_CONDENSED; ๐Ÿ”’
use std::fmt::Display; ๐Ÿ”’
use crate::display::ArrayFormatter; ๐Ÿ”’
use crate::display::FormatOptions; ๐Ÿ”’
use crate::display::make_array_formatter; ๐Ÿ”’

Constantsยง

TABLE_STYLE ๐Ÿ”’

Functionsยง

create_column ๐Ÿ”’
create_table ๐Ÿ”’
Convert a series of record batches into a table
pretty_format_batches
Create a visual representation of [RecordBatch]es
pretty_format_batches_with_options
Create a visual representation of [RecordBatch]es with formatting options.
pretty_format_batches_with_schema
Create a visual representation of [RecordBatch]es with a provided schema.
pretty_format_columns
Create a visual representation of [ArrayRef]
pretty_format_columns_with_options
Create a visual representation of [ArrayRef] with formatting options.
print_batches
Prints a visual representation of record batches to stdout
print_columns
Prints a visual representation of a list of column to stdout