← all repositories
javascriptdata/danfojs

Pandas for JavaScript, with TensorFlow hooks

Danfo.js ports Pandas-style dataframes to JavaScript so you can wrangle, plot, and feed structured data directly into TensorFlow.js without leaving the ecosystem.

5.1k stars TypeScript Data Tooling
danfojs
Not currently ranked — collecting fresh signals.
star history

What it does

Danfo.js is a TypeScript library that brings labeled data structures—DataFrame and Series—to JavaScript and Node.js. It mimics the Pandas API closely so Python data practitioners can transfer their mental models without friction. You can ingest CSV, JSON, or Excel files, clean and transform tabular data, and convert structures directly into TensorFlow.js tensors.

The interesting bit

The library runs in both Node.js and the browser, bundling interactive plotting and machine-learning preprocessing into a single toolkit. Its tight integration with TensorFlow.js is the unusual angle: it treats dataframes not as dead-end spreadsheets, but as staging areas for ML pipelines in pure JavaScript.

Key highlights

  • Pandas-like API with DataFrame, Series, groupby, merge, and join
  • Native TensorFlow.js tensor conversion for ML workflows
  • Built-in interactive plotting for DataFrames and Series in the browser
  • IO tools for CSV, JSON, and Excel ingestion
  • Data preprocessing utilities including StandardScaler, MinMaxScaler, and encoders
  • Notebook support for VS Code and ObservableHQ

Verdict

Worth a look if you are doing data exploration or ML preprocessing in JavaScript and want to avoid context-switching to Python. Pure Python data scientists already happy with Pandas and PyPlot will find it redundant.

Frequently asked

What is javascriptdata/danfojs?
Danfo.js ports Pandas-style dataframes to JavaScript so you can wrangle, plot, and feed structured data directly into TensorFlow.js without leaving the ecosystem.
Is danfojs open source?
Yes — javascriptdata/danfojs is open source, released under the MIT license.
What language is danfojs written in?
javascriptdata/danfojs is primarily written in TypeScript.
How popular is danfojs?
javascriptdata/danfojs has 5.1k stars on GitHub.
Where can I find danfojs?
javascriptdata/danfojs is on GitHub at https://github.com/javascriptdata/danfojs.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.