bug-datamash
[Top][All Lists]
Advanced

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

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


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

Ok sorry, my bad, just understood why :) you expect the header in the
input file :)
ignore my mail ;)
thanks!

On Wed, Feb 25, 2015 at 7:25 PM, Diego Ceccarelli
<address@hidden> wrote:
> 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
> ________________________________________



-- 
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]