df=pd.DataFrame({'(Source,Target,Weight)':['Majed Moqed,Majed Moqed,0']}) How do I split so that each comma separated element in the columns becomes the column head to the corresponding comma separated element in the rows?
Expected output
Source Target Weight
Majed Moqed Majed Moqed 0