There is one data frame with three columns: model, lot, and qty
import pandas as pd
df = pd.DataFrame({'model':['A','A','A','B', 'B','B','C','C','C','C'],
'lot':['x','x','y','y', 'y','y','y','y','z','z'],
'qty':[1,2,1,3,1,4,3,2,2,2]})
I want to put the same row together like below
Is it possible?