Saltar al contenido
Skillpedia
Análisis y hojas de cálculo12 mil · #11557

rerun-parquet

Qué hace

Esta skill explica cómo asignar una tabla Parquet al modelo de datos de Rerun usando configuración en lugar de código a medida. Está pensada para personas que tienen datos tabulares de robots o sensores guardados en archivos Parquet.

Cuándo usarla

  • ✓Cuando tienes un archivo Parquet de trayectorias de robots o de lecturas de sensores para cargar en Rerun.
  • ✓Cuando necesitas decidir qué columnas se convierten en líneas de tiempo, entidades o componentes agrupados.
  • ✓Cuando alguien sugiere reorganizar primero un archivo Parquet con pandas y quieres una ruta más sencilla.

Link de la skill

https://github.com/rerun-io/rerun/blob/main/skills/rerun-parquet/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/rerun-io/rerun/blob/main/skills/rerun-parquet/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Tengo un archivo Parquet con las posiciones de las articulaciones a lo largo del tiempo. ¿Cómo lo cargo en Rerun con la línea de tiempo correcta?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente prepara un lector que agrupa las columnas según el prefijo de su nombre y marca las columnas de tiempo como líneas de tiempo. Después añade lentes que convierten los valores agrupados en componentes de Rerun tipados.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Rerun parquet ingestion

ParquetReader is a pure reader: it maps a flat table onto the Rerun model by turning raw columns into grouped, time-indexed chunks of struct and scalar components. Column-name prefixes become entities, grouped columns become a single struct component, designated columns become timelines. The reader does not assemble archetypes anymore — mapping struct fields into typed Rerun components (Transform3D, Scalars, Points3D) is done with lenses on the reader's .stream(). The whole reader job is configuration; fill in the rerun-data-model mapping table first, then express it through stream(). Stream mechanics after .stream() are in rerun-chunk-processing.

The whole table is configuration, not code. If you find yourself building Chunk.from_columns from a parquet, or munging it in pandas first, stop — ParquetReader plus a lens almost certainly expresses it. Anything the reader cannot express (per-row entity routing, derived values, unit conversion) belongs in lenses downstream, not in pre-pandas munging; keep the pipeline columnar.

The API

from rerun.chunk import DeriveLens, IndexColumn
from rerun.experimental import ParquetReader

reader = ParquetReader(table_path)  # a lightweight handle over the file
stream = reader.stream(
    entity_path_prefix="/world",  # prepended to every entity path
    column_grouping="prefix",  # "prefix" | "individual" | "explicit_prefixes"
    delimiter="_",  # split for column_grouping="prefix"
    prefixes=None,  # required for "explicit_prefixes"
    use_structs=True,  # pack grouped columns into one struct component
    static_columns=["robot_type"],  # constant-per-file values, logged static
    index_columns=[IndexColumn.timestamp("timestamp", input_unit="us"), IndexColumn.sequence("frame_index")],
)

The constructor takes only path; all loading options live on stream(), and every one is keyword-only. Each stream() call is independent, so one reader can drive several differently-configured streams over the same file. The config is validated against the file's schema at stream() (missing index/static columns raise ValueError there, not mid-iteration). There is no column_rules kwarg — typed-component assembly moved to lenses (below).

What the reader emits

The reader turns the table into chunks, one chunk per group, then leaves the data as generic struct/scalar components for lenses to map. The naming is the key thing the rest of the pipeline keys off:

  • A grouped multi-column prefix X → entity /X, with a single struct component named data. The struct's fields are the column names with the prefix (and delimiter, for "prefix") stripped. So A_pos_x, A_quat_w under prefix A land as struct data with fields pos_x, quat_w on entity /A.

  • A lone column with no group → its own entity named after the column, and a raw component named after the column — not a data struct. So a speed column becomes entity /speed, component speed.

  • A /__properties metadata chunk built from the parquet file's schema metadata. You typically drop it right after .stream():

    stream = reader.stream().drop(content="/__properties/**")
    

Column grouping: which columns share an entity

  • "prefix" (default): split each column name on delimiter, group by the first segment. gripper_pos_x, gripper_pos_y → entity /gripper, struct data{pos_x, pos_y}.
  • "explicit_prefixes": group by the exact strings in prefixes, tried longest-first; the prefix is stripped from each struct field name (a raw string match, no delimiter — foo + a → field a). Columns matching no prefix become individual groups. Use this when names contain the delimiter ambiguously (observation.state vs observation.images.top: pass the full prefixes).
  • "individual": every column is its own chunk/entity with a raw component named after the column — no struct packing at all, even for columns sharing a prefix. use_structs is ignored here. Rarely the model you want; reach for it only as a debugging baseline.

use_structs=True (default) packs a group's columns into a single Arrow struct component (the data field) for "prefix"/"explicit_prefixes"; False emits one component per column (the pre-struct flat layout, what queries see as separate columns).

Timelines: index_columns

Each entry is built with IndexColumn: `IndexColumn.timestamp(

Preguntas frecuentes

¿Qué columna debe ser la línea de tiempo?

La skill te indica que marques la columna de tiempo o de índice como línea de tiempo, para que todos los datos se alineen con ella al ver la grabación.

¿Necesito escribir código Python?

La skill trata la asignación como configuración. Solo hace falta código para los pasos que el lector no puede expresar, y esos se resuelven con lentes.

¿Qué es una lente?

Una lente es una pequeña regla que convierte columnas agrupadas en bruto en un componente de Rerun tipado, como una transformación o un conjunto de valores escalares.

Detalles

Descripción original del autor

Ingest tabular Parquet files into Rerun chunk streams with rerun.experimental.ParquetReader. Read when converting trajectory or sensor tables (LeRobot-style parquet, exported logs) into entities and components — column grouping, timeline/index columns, static columns, and lenses (DeriveLens) that assemble the typed components (Transform3D, Scalars) from the reader's grouped struct/scalar output. Builds on rerun-chunk-processing and rerun-data-model.

repo: rerun-io/rerun

Popularidad

Estrellas en GitHub
12 mil
Posición en el ranking
#11557
Licencia
Apache-2.0
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas