diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index ca29e7cf..4df5ff65 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,9 +5,9 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [ master, dev, danfo/typescript ] pull_request: - branches: [ master ] + branches: [ master, dev ] jobs: test: @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [12.x, 14.x] steps: - uses: actions/checkout@v2 @@ -24,7 +24,4 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: cd danfojs-node && yarn - - run: cd danfojs-node && yarn test - - run: cd danfojs-browser && yarn - - run: cd danfojs-browser && yarn test + - run: yarn test diff --git a/.gitignore b/.gitignore index 211887f2..1313f538 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ .editorconfig -node_modules \ No newline at end of file +node_modules +test/fixtures/* +test/samples/* +*.xlsx diff --git a/README.md b/README.md index 656a905d..8f880afe 100644 --- a/README.md +++ b/README.md @@ -47,145 +47,168 @@ easy and intuitive. It is heavily inspired by [Pandas](https://pandas.pydata.org - Robust data preprocessing functions like [OneHotEncoders](https://danfo.jsdata.org/api-reference/general-functions/danfo.onehotencoder), [LabelEncoders](https://danfo.jsdata.org/api-reference/general-functions/danfo.labelencoder), and scalers like [StandardScaler](https://danfo.jsdata.org/api-reference/general-functions/danfo.standardscaler) and [MinMaxScaler](https://danfo.jsdata.org/api-reference/general-functions/danfo.minmaxscaler) are supported on DataFrame and Series +## Installation +There are three ways to install and use Danfo.js in your application +* For Nodejs applications, you can install the [__danfojs-node__]() version via package managers like yarn and/or npm: -To use Danfo.js via script tags, copy and paste the CDN below to the body of your HTML file +```bash +npm install danfojs-node + +or + +yarn add danfojs-node +``` +For client-side applications built with frameworks like React, Vue, Next.js, etc, you can install the [__danfojs__]() version: + +```bash +npm install danfojs + +or + +yarn add danfojs +``` + +For use directly in HTML files, you can add the latest script tag from [JsDelivr](https://www.jsdelivr.com/package/npm/danfojs) to your HTML file: + ```html - + ``` See all available versions [here](https://www.jsdelivr.com/package/npm/danfojs) ### Example Usage in the Browser -> See the example below in [Code Sandbox](https://codepen.io/risingodegua/pen/bGwPGMG) +> Run in [Code Sandbox](https://codepen.io/risingodegua/pen/bGwPGMG) ```html -
- - - - + + + +=c)continue;const o=m>1?(a-n)*(h-1)/(m-1):0,p=g>1?(s-r)*(f-1)/(g-1):0;for(let t=0;t