¡@

Home 

python Programming Glossary: col_name

Disturbing odd behavior/bug in Python itertools groupby?

http://stackoverflow.com/questions/13041108/disturbing-odd-behavior-bug-in-python-itertools-groupby

and get the right result import itertools operator csv col_name name2 x ENSMUSG00000002459 print looking for entries with value.. print looking for entries with value s in column s x col_name print groupby gets it wrong data csv.DictReader open f delimiter.. entries in itertools.groupby data key operator.itemgetter col_name if name ENSMUSG00000002459 wrong_result e for e in entries print..