Crate perspective_js
source ·Expand description
The JavaScript language bindings for Perspective.
§JavaScript Examples
A simple example which loads an Apache Arrow and computes a “Group By” operation, returning a new Arrow.
import perspective from "@finos/perspective";
const table = await perspective.table(apache_arrow_data);
const view = await table.view({ group_by: ["CounterParty", "Security"] });
const arrow = await view.to_arrow();
Structs§
- An instance of a
Clientis a unique connection to a singleperspective_server::Server, whether locally in-memory or remote over some transport like a WebSocket. Tableis Perspective’s columnar data frame, analogous to a PandasDataFrameor Apache Arrow, supporting append & in-place updates, removal by index, and update notifications.- The
Viewstruct is Perspective’s query and serialization interface. It represents a query on theTable’s dataset and is always created from an existingTableinstance via theTable::viewmethod. .