"""group rows by cols, then apply the function op to each group 
rows is list of values or dict with col names (like read from 
csv.reader or   csv.DictReader)"""
Есть ли реализация ddply Хэдли для python?