On Jan 22, 2013 11:31 PM, "moonhkt" <moon...@gmail.com> wrote:
>
> Hi Al
>
> I have Data file have below
>
> Data file
> V1
> V2
> V3
> V4
> V4
> V3
>
> How to using count number of data ?
>
> Output
> V1 = 1
> V2 = 1
> V3 =2
> V4 = 2

Construct a frequency table using collections.Counter:

http://docs.python.org/2.7/library/collections.html#collections.Counter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to