ak.zip_no_broadcast#

Defined in awkward.operations.ak_zip_no_broadcast on line 20.

ak.zip_no_broadcast(arrays, *, parameters=None, with_name=None, highlevel=True, behavior=None, attrs=None)#

Combine arrays into a single structure as the fields of a collection of records or the slots of a collection of tuples without broadcasting.

This function is similar to :func:ak.zip but does not attempt to broadcast inputs together. It therefore requires that the provided arrays already share compatible layouts and lengths.

Parameters#

arrays

Mapping or sequence of array-like objects that ``ak.to_layout`` recognizes. If a mapping is provided, its keys are used as field names in the resulting record array. If a sequence is provided, a tuple-like record (no field names) is produced.

parameters

Optional parameters for the resulting RecordArray node.

with_name

If given, sets the ``__record__`` parameter on the result.

highlevel

If True, return an :class:ak.Array; otherwise return a low-level :class:ak.contents.Content subclass.

behavior

Optional behavior for the output array when ``highlevel`` is True.

attrs

Optional attributes for the output array when ``highlevel`` is True.

Notes#

Only two kinds of layouts are supported: :class:ak.contents.NumpyArray and :class:ak.contents.ListOffsetArray (whose contents must be ``NumpyArray``). All inputs must have the same length. When ListOffsetArray inputs are provided, their offsets must be identical.