I have the following data:
Invoice NoStockCode Description Quantity CustomerID Country 536365 85123A WHITE HANGING HEART T-
Try using a variation of the following:
df.groupby('company').product.agg([('count', 'count'), ('NoStockCode', ', '.join), ('Descrption', ', '.join), ('Quantity', ', '.join)])