> The data was sorted and so duplicates will not appear anywhere in the
dataframe.
>

I guess that's it. Use the standard csv module and itertools.groupby.
Groupby will produce a list of grouped objects. So you can group by the
first column by supplying a key function which just returns the first
column.

Check this out for an example:
http://stackoverflow.com/questions/773/how-do-i-use-pythons-itertools-groupby(most
upvoted answer)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to