turicreate.SArrayBuilder.append — Turi Create API 6.4.1 documentation (original) (raw)

Turi Create API

Turi Create API


SArrayBuilder. append(data, segment=0)

Append a single element to an SArray.

Throws a RuntimeError if the type of data is incompatible with the type of the SArray.

Parameters: data : any SArray-supported type A data element to add to the SArray. segment : int The segment to write this element. Each segment is numbered sequentially, starting with 0. Any value in segment 1 will be after any value in segment 0, and the order of elements in each segment is preserved as they are added.