Skip to content

Accessors

arro3.core

dictionary_dictionary

dictionary_dictionary(
    array: ArrowArrayExportable | ArrowStreamExportable,
) -> Array | ArrayReader

Access the dictionary of a dictionary array.

This is equivalent to the .dictionary attribute on a PyArrow DictionaryArray.

Parameters:

Returns:

dictionary_indices

dictionary_indices(
    array: ArrowArrayExportable | ArrowStreamExportable,
) -> Array | ArrayReader

Access the indices of a dictionary array.

This is equivalent to the .indices attribute on a PyArrow DictionaryArray.

Parameters:

Returns:

list_flatten

Unnest this ListArray, LargeListArray or FixedSizeListArray.

Parameters:

Returns:

list_offsets

list_offsets(
    input: ArrowArrayExportable | ArrowStreamExportable, *, logical: bool = True
) -> Array | ArrayReader

Access the offsets of this ListArray or LargeListArray

Parameters:

  • input (ArrowArrayExportable | ArrowStreamExportable) –

    description

  • physical

    If False, return the physical (unsliced) offsets of the provided list array. If True, adjust the list offsets for the current array slicing. Defaults to True.

Returns:

struct_field

struct_field(
    values: ArrowArrayExportable, /, indices: int | Sequence[int]
) -> Array

Access a column within a StructArray by index

Parameters:

  • values (ArrowArrayExportable) –

    Argument to compute function.

  • indices (int | Sequence[int]) –

    List of indices for chained field lookup, for example [4, 1] will look up the second nested field in the fifth outer field.

Returns: