Is there a way to merge two lists into one under one condition?
I have list of lists where I have name, email address and item purchased for each customer.
Some customers purchased two items and thus have the same email, but no name indicated as separate list.
How can I add their second purchased item into the first list with their names?
I have following:
['Heather Holt', 'ht*****r1011@gmail.com', 'Lite-Lounge - White']
['', 'ht*****r1011@gmail.com', 'Lite-Desk - Oyster Grey']
I want to see the lists in the following way:
['Heather Holt', 'ht*****r1011@gmail.com', 'Lite-Lounge - White', 'Lite-Desk - Oyster Grey']
Thanks for the hint.