F : 0.1 : 0.002
P : 0.3 : 0.004
P : 0.5 : 0.008
P : 0.1 : 0.005
L : 0.05 : 0.02
P: 0.1 : 0.006
P : 0.01 : 0.08
F : 0.02 : 0.08
Expected output:
F : 0.1 : 0.002
P : 0.3 : 0.017 (Here it is addition of 0.004+ 0.008 + 0.005)
L : 0.05 : 0.02
P: 0.1 : 0.086 ( (Here it is addition of 0.006 + 0.08 )
F : 0.02 : 0.08
That is here ^P rows third column get added and made as single column.