GithubHelp home page GithubHelp logo

summarizer's Introduction

##Input Pandas dataframe and options to customize output, for example:

  • output_type - markdown, html or xlsx
  • out filename
  • report - 0 - to string, 1 - to file

##Task description The program should take pandas dataframe as input, iterate through each of the columns in the dataframe and based on column datatype, create summary statistics for each, and print them out in a table. Calculated summary could include following items:

  • column type
  • min, max
  • mean, median, mode
  • percent of zero rows
  • variance and standard deviation
  • interquartile range and coefficient of variation
  • number of distinct values

##Output A markdown, html or xlsx report with summary statistics

# sepal length (cm) # sepal width (cm) # petal length (cm) # petal width (cm) # target
count 150 150 150 150 150
mean 5.84333 3.05733 3.758 1.19933 1
std 0.828066 0.435866 1.7653 0.762238 0.819232
min 4.3 2 1 0.1 0
25% 5.1 2.8 1.6 0.3 0
50% 5.8 3 4.35 1.3 1
75% 6.4 3.3 5.1 1.8 2
max 7.9 4.4 6.9 2.5 2

How to run

git clone https://github.com/bognev/summarizer.git
cd summarizer
python -m pip install ./dist/summarizer_package-0.1.0.tar.gz
chmod +x run.sh && ./run.sh

or

report=1
out="report"
output_type="markdown"
python -u main.py  --report=$report --out=$out --output_type=$output_type

summarizer's People

Contributors

bognev avatar

Watchers

James Cloos avatar  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.