How can I transform a table so the column headers go into the table and the table values become column headers?
How can I transform a table so the column headers go into the table and the table values become column headers? Question: How can I use pandas in Python to make this table: data = [[‘4/04/2023′,’Floors’,’Tables’,’Roof’,’Paint’,”],[‘4/05/2023′,”,’Floors’,’Tables’,’Roof’,’Paint’],[‘4/06/2023′,’Paint’,”,’Floors’,’Tables’,’Roof’],[‘4/07/2023′,’Roof’,’Paint’,”,’Floors’,’Tables’]] df = pd.DataFrame(data, columns=[‘Date’, ‘Jim’,’Bob’,’Ed’,’James’,’Joe’]) Look like this? I think I have to use melt and Pivot, but I …