Esacode

Docs / Blocks / Data

Filter table

Keeps the rows of a table that match a condition.

Runs on a worker (Python) Data Version 1.0 Code you can open and adapt

How it works

Connect a table (CSV or JSON list). Choose a column, a comparison and a value: for example success = false, or wind_mps > 10. The kept rows go out as a new table, ready for a chart or the next block.

Inputs

InputTakesWhat it is
Table
table
Table
csv, tsv

Outputs

OutputGivesWhat it is
Kept rows
table
Table
csv
Counts
result
Metrics
json
Live telemetry
telemetry
Live telemetryWhat the block sends while it runs, for views such as Chart or 3D view.

Settings

SettingDefaultWhat it does
Column
column
empty
Comparison
op
=
One of: =, ≠, >, ≥, <, ≤, contains
Value
value
empty
At most (rows)
limit
100000
From 1

Where it runs

On one of your computers with the EsaSim worker: Any worker.

In its code, settings are ctx.params["key"], inputs ctx.inputs["id"] and outputs ctx.output("id", "name.ext"); see Custom blocks.

More in Data