Jon Aquino's Mental Garden

Engineering beautiful software jon aquino labs | personal blog

Friday, January 14, 2011

data_hacks: Command line utilities for data analysis

Someone sent around this link at work a while back: data_hacks (command-line utilities for data analysis).

It can do a few different things – I like it for quickly generating histograms:
$ cat data | bar_chart.py --sort-keys
# each * represents a count of 2
19:0 [     1] 
19:1 [    24] ************
19:2 [     3] *
19:3 [     9] ****
19:4 [     5] **
19:5 [    41] ********************
20:0 [   115] *********************************************************
20:1 [   181] ******************************************************************************************
20:2 [   136] ********************************************************************
20:3 [   155] *****************************************************************************
20:4 [   150] ***************************************************************************
20:5 [    79] ***************************************
21:0 [    64] ********************************
21:1 [     8] ****

0 Comments:

Post a Comment

<< Home