Expand description
Helpers for working with arrow
Structs§
- Downcast
Error - A failed downcast of an arrow array to a concrete array type.
- Missing
Column Error - Error used when a column is missing from a record batch
- Record
Batch Format Opts - Wrong
Datatype Error - Error used for arrow datatype mismatch.
Enums§
- GetColumn
Error - Error used when a column is missing from a record batch, or has the wrong type.
Traits§
- Arrow
Array Downcast Ref - Downcast an arrow array to another array, without having to go via
Any. - Fields
Test Ext - List
Array Ext - Extensions for
GenericListArray. - Record
Batch Ext - Record
Batch Test Ext - Schema
Test Ext
Functions§
- almost_
equal_ f64 - Return true when arguments are the same within some rounding error.
- arrays_
to_ list_ array - Create a sparse list-array out of an array of arrays.
- arrays_
to_ list_ array_ opt - Create a sparse list-array out of an array of arrays.
- blob_
array_ to_ binary - Returns a binary-array view of blob data represented as
BinaryArrayorListArray<UInt8>. - blob_
arrays_ offsets_ and_ buffer - Get the underlying buffer of an arrow array of logical type
Vec<Vec<Blob>>. - canonical_
component_ list_ field - The canonical field for the outer list of a component column: named
item, nullable, and without metadata. - canonicalized_
component_ list_ array - Rewrites
list_array’s outer field intocanonical_component_list_field, leaving the values, offsets and nulls untouched. ReturnsNoneif the field is already canonical. - concat_
arrays - Applies a
arrow::compute::concatkernel to the givenarrays. - concat_
polymorphic_ batches - Concatenates the given
RecordBatches, regardless of their respective schema. - deep_
slice_ array - Deep-slicing operation for Arrow arrays.
- deep_
slice_ array_ erased - Deep-slicing operation for Arrow arrays.
- ensure_
similar - Are two arrays equal, ignoring small numeric differences?
- extract_
fixed_ size_ array_ element - Extract the element at
idxfrom aFixedSizeListArray. - filter_
array - Applies a filter kernel to the given
array. - format_
field_ datatype - Format the datatype of a field (column) with optional nullability
- format_
record_ batch - Nicely format this record batch in a way that fits the terminal.
- format_
record_ batch_ opts - Nicely format this record batch using the specified options.
- format_
record_ batch_ with_ width - Nicely format this record batch, either with the given fixed width, or with the terminal width (
None). - garbage_
collect_ string_ view_ batch - Heuristically compact
StringViewArrays to reduce memory usage, if needed - into_
arrow_ ref - is_
list_ array_ semantically_ empty - Returns true if the given
list_arrayis semantically empty. - new_
list_ array_ of_ empties - Returns a new [
ListArray] with lenentries. - pad_
list_ array_ back - Create a new
ListArrayof target length by appending null values to its back. - pad_
list_ array_ front - Create a new
ListArrayof target length by appending null values to its front. - reject_
unsupported_ widenings - Safety gate: reject
DataType::Unionin the checked type, and recursively within nestedDataType::Struct,DataType::List,DataType::LargeList, andDataType::FixedSizeListchildren. - sparse_
list_ array_ to_ dense_ list_ array - Given a sparse
ListArray(i.e. an array with a nulls bitmap that contains at least one falsy value), returns a denseListArraythat only contains the non-null values from the original list. - take_
array - Applies a take kernel to the given
array. - take_
record_ batch - Takes rows from a
RecordBatchat the specified indices. - widen_
binary_ arrays - Convert any
BinaryArraytoLargeBinaryArray, because we treat them logically the same - wrap_
in_ list_ array - Convert
[A, B, null, D, …]into[[A], [B], null, [D], …].