bug-datamash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-datamash] bug in groupBy when -headers is on?


From: Diego Ceccarelli
Subject: [Bug-datamash] bug in groupBy when -headers is on?
Date: Wed, 25 Feb 2015 19:25:42 +0100

Dear all,
Thanks for datamash, It's really useful.
I'm not sure but I think I found a bug, I'm using version 1.0.6
on osX (installed with brew).
Using this file:

address@hidden:/tmp$ cat test
a
a
a
b
b
c

I got

address@hidden:/tmp$ datamash --sort  -g 1 count 1  < /tmp/test
a    3
b    2
c    1

[correct]
while, if I add the headers:

address@hidden:/tmp$ datamash --sort --headers -g 1 count 1  < /tmp/test1
GroupBy(a)    count(a)
a    2 <--
b    2
c    1

the count on the (a) seems wrong.
Thanks,

Diego






-- 
Computers are useless. They can only give you answers.
(Pablo Picasso)
_______________
Diego Ceccarelli
High Performance Computing Laboratory
Information Science and Technologies Institute (ISTI)
Italian National Research Council (CNR)
Via Moruzzi, 1
56124 - Pisa - Italy

Phone: +39 050 315 2984
Fax: +39 050 315 2040
________________________________________



reply via email to

[Prev in Thread] Current Thread [Next in Thread]