GitXplorerGitXplorer
n

dodos

public
3 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
bf3c0a144128e2a36ebaa191bb9dd303420d75e5

Merge pull request #84 from nfcampos/greenkeeper-babel-preset-es2015-6.14.0

nnfcampos committed 8 years ago
Unverified
0745ef88636a410b9de2fec3201d31b26ea27ad7

Merge pull request #83 from nfcampos/greenkeeper-babel-cli-6.14.0

nnfcampos committed 8 years ago
Unverified
312457085dc32781a0115049e0a93e5346dce4c8

chore(package): update babel-preset-es2015 to version 6.14.0

ggreenkeeperio-bot committed 8 years ago
Unverified
6cf249afb698052ae17a0ae85a4b67bab6808c65

chore(package): update babel-cli to version 6.14.0

ggreenkeeperio-bot committed 8 years ago
Unverified
4a32f52a359c93addb53c3111d2464908f335a20

Merge pull request #82 from nfcampos/greenkeeper-babel-core-6.14.0

nnfcampos committed 8 years ago
Unverified
7bc91ee41f9402191bc7aec307cc027809e8c75f

chore(package): update babel-core to version 6.14.0

ggreenkeeperio-bot committed 8 years ago

README

The README file for this repository.

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.