Identify the nodejs-polars darwin-x64 binary
mainnodejs-polars-darwin-x64 package provides the pre-compiled x86_64-apple-darwin binary for nodejs-polars. Use this specific package if you are running on macOS with an Intel (x86_64) processor.repository·main·Indexed 20 days ago
https://github.com/pola-rs/nodejs-polarsA high-performance DataFrame library for Node.js, Bun, and Deno powered by the Rust Polars engine. It provides data manipulation capabilities via core structures like DataFrame, LazyDataFrame, and Series. The library supports eager and lazy IO operations (CSV, JSON, Parquet, IPC, Avro), SQL queries via SQLContext, and a powerful expression API (Expr) with specialized namespaces for datetime, string, list, and struct operations. Version 0.25.2.
nodejs-polars-darwin-x64 package provides the pre-compiled x86_64-apple-darwin binary for nodejs-polars. Use this specific package if you are running on macOS with an Intel (x86_64) processor.nodejs-polars-linux-arm64-musl package provides the aarch64-unknown-linux-musl binary for nodejs-polars. This specific build is intended for Linux environments running on ARM64 architecture that use the musl C library (commonly found in Alpine Linux or other lightweight distributions).nodejs-polars-linux-arm64-gnu package provides the aarch64-unknown-linux-gnu binary specifically for nodejs-polars. Use this package if your target environment is a Linux system running on an ARM64 (aarch64) architecture using the GNU C library (glibc).Benchmark results are printed to the console via console.table and saved to ./benchmarks/list-operations.csv.
Rows are grouped by list_size, then by operation, and sorted by mean time. This ensures the fastest data structure for a specific operation appears at the top of its group.
You can install nodejs-polars using your preferred package manager. Note that releases occur frequently, so regular updates are recommended to receive the latest features and bugfixes.
Minimum Requirements:
>=18>=1.86 (only required if compiling from source)yarn add nodejs-polars # yarn
npm i -s nodejs-polars # npm
bun i -D nodejs-polars # BunIn Deno, you can import Polars directly from npm. For notebook environments, you can display DataFrames using the display function (Deno 1.37+) or by making the DataFrame the last expression in a cell (Deno 1.38+).
// Standard import
import pl from "npm:nodejs-polars";
// Deno Notebook (1.38+)
import pl from "npm:nodejs-polars";
let response = await fetch(
"https://cdn.jsdelivr.net/npm/world-atlas@1/world/110m.tsv",
);
let data = await response.text();
let df = pl.readCSV(data, { sep: "\t" });
df // Last expression renders in notebookThe benchmark suite compares nodejs-polars Series performance against native JavaScript arrays, lodash, and ramda for basic list operations.
nodejs-polars available to require("nodejs-polars"). It is recommended to build it from the repository root first using yarn build.benchmarks/ directory exists, as results are appended to ./benchmarks/list-operations.csv.From the benches/ directory, run:
# 1. Install comparison dependencies
yarn install
# 2. Run the benchmark suite
node ./list-operations.jsyarn install
node ./list-operations.jsDepending on your module system, import the library as follows:
ESM:
import pl from 'nodejs-polars';CommonJS (require):
const pl = require('nodejs-polars');// esm
import pl from 'nodejs-polars';
// require
const pl = require('nodejs-polars');nodejs-polars-android-arm64 package provides the aarch64-linux-android binary for nodejs-polars. This specific package should be used when targeting Android devices with ARM64 (aarch64) architecture.To get a bleeding edge release or maximal performance, you can compile Polars from source. This requires the Rust compiler.
Steps:
npm|yarn install in the repository.For fastest binary (long compile times):
cd nodejs-polars && yarn build && yarn build:ts
For debugging (fastest compile times, slow/large binary):
cd nodejs-polars && yarn build:debug && yarn build:ts
# Fastest binary
cd nodejs-polars && yarn build && yarn build:ts
# Debugging build
cd nodejs-polars && yarn build:debug && yarn build:tsA Series represents a single column in a Polars DataFrame. It is an ArrayLike object that supports various data manipulation operations including arithmetic, comparison, rolling windows, and cumulative operations. It provides specialized namespaces for different data types:
str: SeriesStringFunctions for string operations.list: SeriesListFunctions for list/array operations.dt: SeriesDateFunctions for datetime operations.struct: SeriesStructFunctions for struct operations.Polars provides two ways to add data to a Series:
append(other): Adds the chunks from the other Series to the chunks of this series. Use this when appending many times (e.g., reading multiple files) before performing a query. Finish with rechunk() if needed.extend(other): Appends data from other to the underlying memory locations. This may cause a reallocation but results in a single chunk, making subsequent queries faster. Use this for online operations where you add rows and immediately rerun a query.Note: extend modifies the series in-place.
const a = pl.Series("a", [1, 2, 3]);
const b = pl.Series("b", [4, 5]);
// Option 1: Append (adds chunks)
a.append(b);
// Option 2: Extend (modifies in-place, potentially reallocates)
a.extend(b);