ak.from_iter — Awkward Array 2.8.2 documentation (original) (raw)

Defined in awkward.operations.ak_from_iter on line 19.

ak.from_iter(iterable, *, allow_record=True, highlevel=True, behavior=None, attrs=None, initial=1024, resize=8)#

Parameters:

Converts Python data into an Awkward Array.

Any heterogeneous and deeply nested Python data can be converted, but the output will never have regular-typed array lengths. Internally, this function usesak::ArrayBuilder (see the high-level ak.ArrayBuilder documentation for a more complete description).

The following Python types are supported.

See also ak.to_list.