key_func lambda info info email for email customer_info_group in group

1
2
key_func = lambda info: info.email
for email, customer_info_group in groupby(reusable_infos, key_func):