Skip to main content

module  pixeltable.functions.array

Pixeltable UDFs for ArrayType. Example:
import pixeltable as pxt

t = pxt.get_table(...)
t.select(t.array_col.to_list()).collect()

udf  to_list()

Signature
@pxt.udf
to_list(self: pxt.Array) -> pxt.Json
Convert an array to a nested Python list. Equivalent to numpy’s ndarray.tolist(). Useful for exporting to systems that lack a fixed-shape tensor type (e.g. Iceberg). Examples:
t.select(t.array_col.to_list()).collect()
Last modified on June 12, 2026