Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dodos

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dodos

Pandas-inspired iterator-based data wrangling library for js

  • 2.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
2
Weekly downloads
 
Created
Source

Dodos

Pandas-inspired transducer-based data wrangling library for js

On npm: https://www.npmjs.com/package/dodos

NOTE: This is very much a work in progress for now


array = [
  [1, 2, 3],
  [3, 4, 5],
]

index = ['columnA', 'columnB', 'columnC']

const dodo = new Dodo(array, index)

dodo.col('columnA').toArray() // [1, 3]

dodo.filterBy('columnB', b => b == 4).toArray() // [4]

dodo.col('columnA').sum() // 4

All methods return a new instance, leaving the original untouched. All operations on the array are evaluated only when calling .toArray() or when calling a .reduce() method (eg. .sum()).

For now, please refer to the tests for more usage examples.

FAQs

Package last updated on 06 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc