I have data in the below provided format
Required format is
I have tried with below loop but could not success.. please extend your support md1 = pd.DataF