A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arrow.apache.org/docs/python/api/../generated/pyarrow.dense_union.html below:

pyarrow.dense_union — Apache Arrow v21.0.0

pyarrow.dense_union#
pyarrow.dense_union(child_fields, type_codes=None)#

Create DenseUnionType from child fields.

A dense union is a nested type where each logical value is taken from a single child, at a specific offset. A buffer of 8-bit type ids indicates which child a given logical value is to be taken from, and a buffer of 32-bit offsets indicates at which physical position in the given child array the logical value is to be taken from.

Unlike a sparse union, a dense union allows encoding only the child array values which are actually referred to by the union array. This is counterbalanced by the additional footprint of the offsets buffer, and the additional indirection cost when looking up values.

Parameters:
child_fieldssequence of Field values

Each field must have a UTF8-encoded name, and these field names are part of the type metadata.

type_codeslist of integers, default None
Returns:
typeDenseUnionType

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4