Sandbox — LSD is in active testing. All systems operational·payments are test-mode (no real charges).
Overview Use Cases News Docs Tool Store Support Community Get LSD
All docs
API Reference

Table

Table is lsdtools' immutable, zero-copy wrapper over an Arrow table — the data that flows between steps. Reference for every method, with examples.

Table is the data that flows between steps — an immutable, zero-copy view over one pyarrow.Table. Every verb returns a new Table (or a Column), and each compiles to a single Arrow compute kernel, so chains stay zero-copy and fast. The point is that a geologist never types pyarrow.compute and an LLM gets a small, promptable verb list — while performance stays identical to raw pyarrow.

Usage#

Build one by calling the Table(...) constructor, then chain verbs:

Python
from lsdtools import Table

t = Table({"name": ["ann", "bob", "cy"], "score": [12, 30, 7]})
top = t.filter(t["score"] > 10).sort("score", descending=True)
top.print()
# → name:["bob","ann"] score:[30,12]

Inside a step you receive a Table as an input port and return one:

Python
@tool.shape
def keep_top(t: Table, cutoff: int = 10) -> Table:
    return t.filter(t["score"] >= cutoff)

Where to start#

LearnTables & data flow · Shape steps

ExamplesClean a CSV

APIColumn · Source · Context · Engine

Properties

Methods

By LSD Team · Last updated Jul 17, 2026 Ask on Discord View as Markdown