Pandas: Convert group into list of jsons without using groupby or apply
I have an item dataframe such as: item_dict = { 'index': [18, 24, 25, 26, 30, 31, 37, 38, 61, 62, 63, 67, 68, 69], 'BarCode_x': ['12345678ABCD', '12345678IJKL', '12345678IJKL', '12345678IJKL', '12345678EFGH', '12345678EFGH', '67890123IJKL', '67890123IJKL', '67890123ABCD', '67890123ABCD', '67890123ABCD', '67890123EFGH', '67890123EFGH', '67890123EFGH'],…