- ak.from_arrow(array, *, generate_bitmasks=False, highlevel=True, behavior=None)#
pyarrow.Table) – Apache Arrow array to convert into an Awkward Array.
generate_bitmasks (bool) – If enabled and Arrow/Parquet does not have Awkward metadata,
generate_bitmasks=Truecreates empty bitmasks for nullable types that don’t have bitmasks in the Arrow/Parquet data, so that the Form (BitMaskedForm vs UnmaskedForm) is predictable.
Converts an Apache Arrow array into an Awkward Array.
This function always preserves the values of a dataset; i.e. the Python objects
ak.to_list are identical to the Python objects returned by Arrow’s
to_pylist method. If
ak.to_arrow was invoked with
function also preserves the data type (high-level
ak.types.Type, though not the
ak.forms.Form), even through Parquet, making Parquet a good way to save
Awkward Arrays for later use.