I have the following DataFrame:
FACTORY_ID SUPPLIER_ID DELIVERY_DATETIME
A 1 05/09/2015 11:00
A 1 05/09/2015 11:00
A 2 05/09/2015 11:00
A 2 08/09/2015 11:00
A 1 08/09/2015 11:00
A 1 08/09/2015 11:00
A 1 08/09/2015 11:00
A 2 08/09/2015 11:00
A 2 13/09/2015 11:00
A 3 13/09/2015 11:00
A 3 13/09/2015 11:00
A 3 13/09/2015 11:00
A 3 13/09/2015 11:00
A 3 13/09/2015 11:00
which I intend to transform by using a GroupBy clause to show a summarized view of the data for presentation. (DELIVERY_DATETIME is a column that is concatenated and comma-delimited.) Desired results in this example:
FACTORY_ID SUPPLIER_ID DELIVERY_DATETIME
A 1 05/09/2015 11:00:00 AM, 08/09/2015 11:00:00 AM
A 2 05/09/2015 11:00:00 AM, 13/09/2015 11:00:00 AM
A 3 13/09/2015 11:00:00 AM
Have tried GroupBy/drop_duplicates but have been unable to get what I wanted. How should I go about doing this?