Below is the input data
Type Cat Var Dist Count
@joy A1 + B1 x + y + z 0:25:75 4
.cet C1 + D1 p + q 50:50 2
sam E1 + F1 g 100:3:2 10
Below is the intended output
Type Cat Var Dist Count Output
@joy A1 + B1 x + y + z 0:25:75 4 @joyA1 + B1x + y +z
.cet C1 + D1 p + q 50:50 2 .cetC1 + D1p + q
sam E1 + F1 g 100:3:2 10 samE1 + F1g
Below is the try from my end:
df.iloc[:,0:3].dot(['Type','Cat','Var'])