Javascript Dataframe - Immutable and functional data structure for datascientists and developpers
npm install jxy-dftail, head, slice, getRow, setRow, fillMissingValues, dropMissingValues methods
sortBy now handles missing values.
javascript
import DataFrame from "dataframe-js";
import { data, columns } from "./titanic_data.js";
const df = new DataFrame(data, columns);
const filteredDf = df
.filter(row => row.get("survived") === "yes")
.select("class", "age", "sex");
filteredDf.show(3);
`
`
| class | age | sex |
----------------------------------------
| 1st class | adults | man |
| 1st class | adults | man |
| 1st class | adults | woman |
`
Installation
via git: npm install git+https://github.com/Gmousse/dataframe-js.git
via npm: npm install dataframe-js
via yarn: yarn add dataframe-js
For the browser, we have change the script provider (rawgit) because it will close soon, consider to update the url!!!
in the browser (1.4.0):
- for production (~ 80ko)
- for development ` (~ 300ko)