Modules@robinpath/table

@robinpath/table

0.1.0Public

Tabular data operations: filter, sort, join, group, aggregate, pivot — like a lightweight DataFrame

@robinpath/table

Tabular data operations: filter, sort, join, group, aggregate, pivot — like a lightweight DataFrame

Category Functions Auth License

Why use this module?

The table module lets you:

  • Create a table from array of objects or columns+rows
  • Select specific columns
  • Filter rows by condition
  • Sort rows by a field
  • Group rows by a field

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/table

Quick Start

No credentials needed — start using it right away:

table.select $data ["name", "age"]

Available Functions

FunctionDescription
table.createCreate a table from array of objects or columns+rows
table.selectSelect specific columns
table.whereFilter rows by condition
table.orderBySort rows by a field
table.groupByGroup rows by a field
table.aggregateAggregate grouped data
table.joinJoin two tables
table.distinctRemove duplicate rows
table.limitTake first N rows
table.offsetSkip first N rows
table.addColumnAdd a column with a default value
table.removeColumnRemove column(s)
table.renameColumnRename a column
table.pivotPivot table
table.unpivotUnpivot/melt table
table.countCount rows
table.sumSum a numeric column
table.avgAverage a numeric column
table.minMinimum of a column
table.maxMaximum of a column
table.headFirst N rows
table.tailLast N rows
table.columnsGet column names
table.shapeGet row and column counts

Examples

Select specific columns

table.select $data ["name", "age"]

Filter rows by condition

table.where $data "age" "gt" 25

Sort rows by a field

table.orderBy $data "age" "desc"

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/table";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  table.select $data ["name", "age"]
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/table
Version0.1.0
LicenseMIT
Unpacked Size7.3 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

data