Git Product home page Git Product logo

dataprobejs's Introduction

About

This is a Javascript library for data exploration and analysis. It takes data input in JSON format and converts it into a tabular form in the node console. It has simple to use commands for manipulating and playing around with the data table.

Installation

npm i dataprobe

Important Functions

  • console.table(dataset) - Used to display the data in tabular format in your terminal/console

  • dataHead(dataset,number) - It takes two input, first the data and then the number of rows. This function is used to display a perticular number of rows from the top of the data table

  • dataTail(dataset,number) - Works same as dataHead(), instead displays a certain number of rows from the bottom depending on input.

  • datasetSize(dataset) - Displays the size of the data table.

  • dataSummary(dataset) - Provides a summary of the data table.

  • columnEncoder(dataset,column-name) -This function takes two inputs, first the data and then the column to be encoded.It converts multivariant data to numeric data for easies and faster data processing

  • sliceColumn(dataset,column-name) - Used to slics a column

  • columnsCorrelation(column1-name,column2-name) - returns the correlation coefficient of two arrays. It takes two sliced arrays as input. Correlation coefficient are always on the range of -1 to +1.

  • checkNull(dataset,column-name) - Used to check and count the presence of null,undefined,"" or 0 values inside a given column of the data table. It return a number. If it returns 0, then the column has no input values

  • deleteColumn(dataset,column-name) - Delete a column form the database.

  • saveDataset(new_dataset,filename) - Takes two inputs, first the data and then the JSON filename of the where you want to store your new dataset in JSON format

How to Import dataprobe and use it ?

const {functionName()} = require("dataprobe");
const dataset = require("./filename");

Example

const {datasetSize} = require("dataprobe");
const dataset = require("./supermarket.json");

console.table(dataset);
datasetSize(dataset);

dataprobejs's People

Contributors

gouravojha avatar data-probe avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.