Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'column': 0.07; 'subject:two': 0.07; 'subject:fields': 0.09; 'cc:addr:python- list': 0.11; '(it': 0.16; 'grouped': 0.16; 'subject:compare': 0.16; 'subject:python': 0.16; '(you': 0.16; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'helpful': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'maybe': 0.34; 'could': 0.34; 'received:209.85': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'useful': 0.36; 'too': 0.37; 'received:209': 0.37; 'first': 0.61; 'advanced': 0.63; 'to:addr:gmail.com': 0.65; 'guessed': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=y1eD7IkZWP4fhLqSZyGm1aF/xag9m7eUotLNy6TiVMc=; b=ib7leLYhpv93ssc4XPhaX6eYa1l8ikiP+15P9gGcfKnM2+MQ5AXAvKxEAsQv50iTWK b1UlQ2QsEutWSVOSMv5fyJGmLRnPY957ksyunYff8GnjaO3bN9KYG72qrjZM4KHeVrI5 YqFzTChr5J/F3MybMP5i9gzNVyu/Bqw479ROa2MKluAfsF2fi5nxtmKtNS1LwjhUbcxY i/6BsqwieGdqMW+3kvCGonZOWAHAX4EsMdqqNscqKxrIKSLQoQF7cZx7RU7nDWMN3Zsn BvbrtTU+PK00aXZK/TybEINBA907rmzDETuhiO+VsEymwrOU6sDXnvorv1GLL/O/hcRY 0nuA== MIME-Version: 1.0 X-Received: by 10.224.192.6 with SMTP id do6mr37669702qab.82.1367345333292; Tue, 30 Apr 2013 11:08:53 -0700 (PDT) In-Reply-To: References: <59afdc2b-ab76-40b6-8f63-4a562e288029@googlegroups.com> Date: Tue, 30 Apr 2013 19:08:53 +0100 Subject: Re: how to compare two fields in python From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Joel Goldstick Content-Type: multipart/alternative; boundary=20cf300fb1cbe090ef04db97e481 Cc: python-list@python.org, upendra kumar Devisetty X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367345343 news.xs4all.nl 15985 [2001:888:2000:d::a6]:42093 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44559 --20cf300fb1cbe090ef04db97e481 Content-Type: text/plain; charset=ISO-8859-1 ... And collections.Counter. This is useful for (you guessed it) counting. Maybe itertools.groupby will be helpful as well (it could be used to give you your data grouped by the first column of data), but it could be a tad advanced for you if you are not too familiar with iterators. --20cf300fb1cbe090ef04db97e481 Content-Type: text/html; charset=ISO-8859-1

... And collections.Counter. This is useful for (you guessed it) counting.

Maybe itertools.groupby will be helpful as well (it could be used to give you your data grouped by the first column of data), but it could be a tad advanced for you if you are not too familiar with iterators.

--20cf300fb1cbe090ef04db97e481--