Oct-14-2019, 10:36 AM
(Oct-13-2019, 10:11 PM)ClimbAddict Wrote: I would try using the dictionary
Unique = {} for row in data_set: Product_name = row[1] Count = row[2] if Product_name in Unique: Unique = Unique[Product_name] + Count
what if the Product_name is not in Unique? and where we are storing Product_name against its count