Erie supports several basic data transform operations. Transforms are exectued in the specified order. Depending on how it is configured, transforms may drop irrelevant fields/columns.
Supoorted transformation operations
Operation | Description | Shape changes |
---|---|---|
aggregate |
One or more data aggregation operation. | Yes-Column/Row |
bin |
Binning a field | No |
filter |
Filter in data points | No |
calculate |
Compute a new field | No |
fold |
Convert columns to values | Yes-Column/Row |
density |
Compute a kernel density | Yes-Column/Row |
API usage
JSON
{
...
"transform" : [
{ ... },
{ ... },
]
...
}
JavaScript
let stream = new Erie.Stream();
...
stream.transform.add({ ... });
stream.transform.add({ ... });
...
For JavaScript API,
you can also use stream.transform.remove(index)
to remove a transform item by index.