Jan Feb Mar
Supplier01 100 100 100
Supplier02 200 200 200
Supplier03 5000 49 359
Supplier04 500 500 500
I have managed to get the above dataframe using the below code
monthset=["Jan","Feb","Mar"]
supplierset=["Supplier01","Supplier02","Supplier03","Supplier04"]
data is a list of list as below
data=[[100,100,100],[200,200,200],[5000,49,359],[500,500,500]]
df = pd.DataFrame(data,columns=monthset,index=supplierset)
How can I get an output as bellow
Supplier01,Jan,100
Supplier01,Feb,100
etc.. Basically infront of an elemnt value the column name and index name with comma seperated.