# JavaScript dataframe libraries

JavaScript dataframe libraries load tabular data into tables of named columns for filtering, grouping, and joining. Each transform returns a new table for the next step to read. These libraries prepare the data behind charts, dashboards, and reports in JavaScript apps and Node.js services.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [nodejs-polars](#polars) | 1.1M | 764 | Nov 2026 | MIT |
| [Arquero](#arquero) | 358.5K | 1.5K | May 2025 | BSD-3-Clause |
| [Tidy](#tidyjs-tidy) | 201.6K | 762 | Apr 2026 | MIT |
| [@perspective-dev/client](#perspective-dev-client) | 134.2K | 11.6K | Nov 2026 | Apache-2.0 |
| [Data-Forge](#data-forge) | 96.9K | 1.4K | May 2026 | MIT |
| [DataFrame-js](#dataframe-js) | 52.9K | 459 | Oct 2020 | MIT |
| [Danfo.js](#danfojs) | 38.0K | 5.1K | Apr 2025 | MIT |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[nodejs-polars](#polars) has the most monthly downloads in this comparison, at 1.1M.

## Capabilities

| Library | Native/WASM dependency | CSV export |
| --- | --- | --- |
| [nodejs-polars](#polars) | Yes | Yes |
| [Arquero](#arquero) | No | Yes |
| [Tidy](#tidyjs-tidy) | No | No |
| [@perspective-dev/client](#perspective-dev-client) | Yes | Yes |
| [Data-Forge](#data-forge) | No | Yes |
| [DataFrame-js](#dataframe-js) | No | Yes |
| [Danfo.js](#danfojs) | No | Yes |

## Libraries

### nodejs-polars

[GitHub](https://github.com/pola-rs/nodejs-polars) · [npm](https://www.npmjs.com/package/nodejs-polars) · [Docs](https://app.unpkg.com/nodejs-polars@0.26.2/files/bin/index.d.ts)

Provides server-side dataframes with column expressions and lazy query graphs.

- Downloads / mo: 1.1M
- Stars: 764
- Last release: 0.26.2
- License: MIT
- Capabilities: [From the nodejs-polars docs](https://app.unpkg.com/nodejs-polars@0.26.2/files/bin/index.d.ts)

**Strengths**

- **Collects optimized lazy queries.** Build a query graph before materializing its dataframe.
- **Matches nearest time-series keys.** Use as-of joins when timestamps do not match exactly.

**Watch out for**

- **Targets server-side JavaScript runtimes.** Use a different package when computation belongs in browsers.
- **As-of joins require sorted keys.** Sort both inputs before matching nearest observations.

```sh
npm install nodejs-polars@0.26.2
```

**Quickstart**

```typescript
const pl = require("nodejs-polars");
const df = pl.DataFrame({ name: ["A", "B"], score: [1, 3] });
console.log(df.select(pl.col("score").mean()).toString());

```

From [README.md](https://app.unpkg.com/nodejs-polars@0.26.2/files/bin/index.d.ts) · [Find projects using nodejs-polars →](https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20nodejs-polars%20for%20dataframe%20joins%2C%20column%20transformations%20and%20grouped%20summaries&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

### Arquero

[GitHub](https://github.com/uwdata/arquero) · [npm](https://www.npmjs.com/package/arquero) · [Docs](https://uwdata.github.io/arquero/api/)

Transforms array-backed column tables through relational verbs, expressions, and window operations.

- Downloads / mo: 358.5K
- Stars: 1.5K
- Last release: 8.0.3
- License: BSD-3-Clause
- Capabilities: [From the Arquero docs](https://uwdata.github.io/arquero/api/)

**Strengths**

- **Reuses columns across transformations.** Chain table verbs while limiting duplicated column data.
- **Summarizes and reshapes tables.** Combine grouped rollups, joins, and reshaping in one fluent API.

**Watch out for**

- **Parsed expressions cannot capture variables.** Pass external values through query parameters or escape functions.
- **Escaped functions restrict query portability.** They disable aggregate/window operations and prevent query serialization.

```sh
npm install arquero@8.0.3
```

**microsoft/showwhy** (222 stars)

[microsoft/showwhy](https://github.com/microsoft/showwhy) 

```typescript
export function useIsMicrodata(table?: ColumnTable, column?: string): boolean {
	return useMemo(() => {
		if (!(table && column)) return true
		const rows = table.numRows()
		const unique = agg(table, op.distinct(column))
		return rows === unique
	}, [table, column])
}

```

[javascript/app-model-exposure/src/hooks/estimate/useIsMicrodata.ts](https://github.com/microsoft/showwhy/blob/8c6cb7d4b49abe8fd09525b51e901f0e7095dc35/javascript/app-model-exposure/src/hooks/estimate/useIsMicrodata.ts#L10) · [More projects using Arquero →](https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20arquero%20for%20dataframe%20joins%2C%20column%20transformations%20and%20grouped%20summaries&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
import { table, op } from "arquero";
const rows = table({ group: ["A", "A", "B"], score: [1, 3, 2] });
const result = rows.rollup({ total: d => op.sum(d.score) });
console.log(result.objects());

```

From [README.md](https://uwdata.github.io/arquero/api/)

### Tidy

[GitHub](https://github.com/pbeshai/tidy) · [npm](https://www.npmjs.com/package/@tidyjs/tidy) · [Docs](https://registry.npmjs.org/%40tidyjs%2Ftidy/latest)

Transforms arrays of JavaScript objects with verbs modeled on dplyr and the tidyverse.

- Downloads / mo: 201.6K
- Stars: 762
- Last release: 2.6.1
- License: MIT
- Capabilities: [From the Tidy docs](https://registry.npmjs.org/%40tidyjs%2Ftidy/latest)

**Strengths**

- **Chains dplyr-style verbs.** Pass rows through tidy() with filter, mutate, arrange, and select steps.
- **Groups rows for summaries.** Export grouped results in several shapes after groupBy.

```sh
npm install @tidyjs/tidy@2.6.1
```

**Quickstart**

```javascript
import { tidy, summarize, sum } from "@tidyjs/tidy";
const rows = [{ group: "A", score: 1 }, { group: "B", score: 3 }];
console.log(tidy(rows, summarize({ total: sum("score") })));

```

From [README.md](https://registry.npmjs.org/%40tidyjs%2Ftidy/latest) · [Find projects using Tidy →](https://dashboard.exa.ai/playground/search?q=%40tidyjs/tidy%20GitHub%20projects)

### @perspective-dev/client

[GitHub](https://github.com/perspective-dev/perspective) · [npm](https://www.npmjs.com/package/@perspective-dev/client) · [Docs](https://raw.githubusercontent.com/perspective-dev/perspective/master/rust/perspective-js/README.md)

Runs a streaming query engine for data grids, pivot tables, and charts in the browser, in Node.js, or over WebSocket.

- Downloads / mo: 134.2K
- Stars: 11.6K
- Last release: 5.9.3
- License: Apache-2.0
- Capabilities: [From the @perspective-dev/client docs](https://raw.githubusercontent.com/perspective-dev/perspective/master/rust/perspective-js/README.md)

**Strengths**

- **Streams table updates.** Apply update and remove calls to a table as data arrives.
- **Pages large tables to disk.** Page a table's columns to disk to work past memory limits.

**Watch out for**

- **Needs WebAssembly setup.** Load the client and server WebAssembly files before creating tables.

```sh
npm install @perspective-dev/client@5.9.3 @perspective-dev/server@5.9.3
```

**Quickstart**

```javascript
import { createRequire } from "node:module";
const require = createRequire(import.meta.url);
const perspective = require("@perspective-dev/client");
const table = await perspective.table([{ region: "West", sales: 12.5 }]);
console.log(table);

```

From [README.md](https://raw.githubusercontent.com/perspective-dev/perspective/master/rust/perspective-js/README.md) · [Find projects using @perspective-dev/client →](https://dashboard.exa.ai/playground/search?q=%40perspective-dev/client%20GitHub%20projects)

### Data-Forge

[GitHub](https://github.com/data-forge/data-forge-ts) · [npm](https://www.npmjs.com/package/data-forge) · [Docs](https://data-forge.github.io/data-forge-ts/interfaces/idataframe.html)

Transforms immutable indexed dataframes and series using lazy JavaScript iterators.

- Downloads / mo: 96.9K
- Stars: 1.4K
- Last release: 1.10.5
- License: MIT
- Capabilities: [From the Data-Forge docs](https://data-forge.github.io/data-forge-ts/interfaces/idataframe.html)

**Strengths**

- **Defers pipeline evaluation.** Compose transformations before requesting materialized results.
- **Provides grouped and rolling sequences.** Build grouped summaries and window-based transformations.

**Watch out for**

- **File access requires an extension.** Install data-forge-fs for filesystem reads and writes.

```sh
npm install data-forge@1.10.5
```

**Grademark/grademark** (316 stars)

[Grademark/grademark](https://github.com/Grademark/grademark) 

```typescript
export function walkForwardOptimize<InputBarT extends IBar, IndicatorBarT extends InputBarT, ParameterT, IndexT>(
    strategy: IStrategy<InputBarT, IndicatorBarT, ParameterT, IndexT>, 
    parameters: IParameterDef[],
    objectiveFn: ObjectiveFn,
    inputSeries: IDataFrame<IndexT, InputBarT>,
    inSampleSize: number,
    outSampleSize: number,
    options?: IOptimizationOptions
        ): IOptimizationResult {

    if (!isObject(strategy)) {
        throw new Error("Expected 'strategy' argument to 'walkForwardOptimize' to be an object that defines the trading strategy for to do the walk-forward optimization.");
    }

    if (!isArray(parameters) || parameters.length <= 0) {
        throw new Error("Expected 'parameters' argument to 'walkForwardOptimize' to be an array that specifies the strategy parameters that are to be optimized.");
    }

    if (!isFunction(objectiveFn)) {
        throw new Error("Expected 'objectiveFn' argument to 'walkForwardOptimize' to be a function that computes an objective function for a set of trades.");
    }

    if (!isObject(inputSeries) && inputSeries.count() > 0) {
        throw new Error("Expected 'inputSeries' argument to 'walkForwardOptimize' to be a Data-Forge DataFrame object that provides the input data for optimization.");
    }

    if (!isNumber(inSampleSize) || inSampleSize <= 0) {
        throw new Error("Expected 'inSampleSize' argument to 'walkForwardOptimize' to be a positive number that specifies the amount of data to use for the in-sample data set (the training data).");
    }

    if (!isNumber(outSampleSize) || outSampleSize <= 0) {
        throw new Error("Expected 'outSampleSize' argument to 'walkForwardOptimize' to be a positive number that specifies the amount of data to use for the out-of-sample data set (the testing data).");
    }

    if (!options) {
        options = {};
    }
    else {
        options = Object.assign({}, options); // Copy so we can change.
    }

    if (options.searchDirection === undefined) {
        options.searchDirection = "max";
    }

    const random = new Random(options.randomSeed || 0);

    let workingDataOffset = 0;
    let trades: ITrade[] = []

    while (true) {
        const inSampleSeries = inputSeries.skip(workingDataOffset).take(inSampleSize).bake();
        const outSampleSeries = inputSeries.skip(workingDataOffset+inSampleSize).take(outSampleSize).bake();
        if (outSampleSeries.count() < outSampleSize) {
            break; // No more data.
        }

        //
        // Choose a random seed for this iteration of optimziation.
        //
        options.randomSeed = random.getReal();

        //
        // Optimize using in sample data.
        //
        const optimizeResult = optimize(strategy, parameters, objectiveFn, inSampleSeries, options);

        //
        // Construct a strategy using the optimal parameter values.
        //
        const strategyClone = Object.assign({}, strategy);
        strategyClone.parameters = Object.assign({}, strategy.parameters, optimizeResult.bestParameterValues);
        
        //
        // Backtest optimized strategy on out of sample data.
        //
        const outSampleTrades = backtest(strategyClone, outSampleSeries); 

        //
        // Accumulate trades from out of sample data.
        //
        trades = trades.concat(outSampleTrades);

        //
        // Move forward to the next out of sample section and repeat.
        //
        workingDataOffset += outSampleSize;
    }

    return {
        trades: trades,
    };
}

```

[src/lib/walk-forward-optimize.ts](https://github.com/Grademark/grademark/blob/dee7bb1a6fd27cf5c11e8116995ba359579d041e/src/lib/walk-forward-optimize.ts#L24) · [More projects using Data-Forge →](https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20data-forge%20for%20dataframe%20joins%2C%20column%20transformations%20and%20grouped%20summaries&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
import { DataFrame } from "data-forge";
const df = new DataFrame([{ score: 1 }, { score: 3 }]);
console.log(df.where(row => row.score > 1).toArray());

```

From [guide.md](https://data-forge.github.io/data-forge-ts/interfaces/idataframe.html)

### DataFrame-js

[GitHub](https://github.com/Gmousse/dataframe-js) · [npm](https://www.npmjs.com/package/dataframe-js) · [Docs](https://raw.githubusercontent.com/Gmousse/dataframe-js/develop/doc/api/dataframe.md)

Provides an immutable, functional dataframe structure.

- Downloads / mo: 52.9K
- Stars: 459
- Last release: 1.4.4
- License: MIT
- Capabilities: [From the DataFrame-js docs](https://raw.githubusercontent.com/Gmousse/dataframe-js/develop/doc/api/dataframe.md)

**Strengths**

- **Works on rows and columns.** Filter, join, and group rows through a SQL-inspired functional API.

**Watch out for**

- **File features need Node.js.** File system features are missing from the browser build.

```sh
npm install dataframe-js@1.4.4
```

**Quickstart**

```javascript
import { DataFrame } from "dataframe-js";
const df = new DataFrame([{ score: 1 }, { score: 3 }]);
console.log(df.filter(row => row.get("score") > 1).toCollection());

```

From [dataframe.md](https://raw.githubusercontent.com/Gmousse/dataframe-js/develop/doc/api/dataframe.md) · [Find projects using DataFrame-js →](https://dashboard.exa.ai/playground/search?q=dataframe-js%20GitHub%20projects)

### Danfo.js

[GitHub](https://github.com/javascriptdata/danfojs) · [npm](https://www.npmjs.com/package/danfojs) · [Docs](https://registry.npmjs.org/danfojs/latest)

Provides labeled data structures for manipulating and processing structured data.

- Downloads / mo: 38.0K
- Stars: 5.1K
- Last release: 1.2.0
- License: MIT
- Capabilities: [From the Danfo.js docs](https://registry.npmjs.org/danfojs/latest)

**Strengths**

- **Follows the Pandas API.** Port Pandas code with similar DataFrame and Series methods.
- **Converts data to tensors.** Convert a DataFrame into TensorFlow.js tensors for model input.

```sh
npm install danfojs@1.2.0
```

**Quickstart**

```javascript
import * as dfd from "danfojs";
const df = new dfd.DataFrame({ name: ["A", "B"], score: [1, 3] });
df.print();

```

From [index.ts](https://registry.npmjs.org/danfojs/latest) · [Find projects using Danfo.js →](https://dashboard.exa.ai/playground/search?q=danfojs%20GitHub%20projects)

## FAQ

### What is Arquero?

[Arquero](#arquero) is a JavaScript library for query processing and transformation of array-backed data tables. Its verbs follow relational algebra, with filter, aggregation, window, join, and reshaping operations.

### Which package is closest to a Pandas-style API?

Danfo.js explicitly follows Pandas and provides a similar API.

### Which of these libraries support deferred transformation pipelines?

Data-Forge queues iterator-based operations and evaluates them when results are required. Node Polars represents lazy computation graphs that can be collected into dataframes.

### Does Arquero expression syntax behave like ordinary JavaScript closures?

Parsed expressions cannot access enclosing-scope variables; query parameters or escaped functions handle external values.

### What changes when an Arquero function is escaped?

Escaping supports closures but disables aggregate/window operations and prevents serializing the query.

### Does a Data-Forge dataframe change when transformed?

Transformations produce a new immutable dataset.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best JavaScript dataframe libraries Danfo Arquero Data-Forge Polars code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
