Split data into multiple rows with iterators
Transform a single document, video, image, or audio file into multiple rows for granular processing.
An iterator in Pixeltable is a function that expands a single input row into multiple output rows.
Core Operations · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
pip install pixeltable
pxt.create_table()pxt.create_view()pxt.iterator()insert()t = pxt.create_table('iterators_demo/images', {'image': pxt.Image})images = ['https://raw.githubusercontent.com/pixeltable/pixeltable/release/docs/resources/images/000000000108.jpg','https://raw.githubusercontent.com/pixeltable/pixeltable/release/docs/resources/images/000000000632.jpg',]t.insert({'image': image} for image in images)t.head()
One cell of the notebook, copied as it is. Open it in Colab for the rest.
Transform a single document, video, image, or audio file into multiple rows for granular processing.
Because typical use cases involve datasets that span multiple time zones, Pixeltable strives to be precise in how it handles time zone arithmetic for datetimes.
Every multimodal AI app needs the same five things: store media, run models, index embeddings, serve endpoints, version everything.
Set up API credentials for OpenAI, Anthropic, and other AI providers so Pixeltable can access them.