How do I take data frame, like the following:
d = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data=d)
df
col1 col2
row0 1 3
row1 2 4
And produce a dataframe where the row name is added to the cell in the frame, like the following:
col1 col2
row0 1,row0 3,row0
row1 2,row1 4,row1
Any help is appreciated.