I'm have some hard to convert this table below to a single row.
The table I want to achieve is this one:
So far, I was able to get this with the code below.
df_hours = df.pivot(columns='DayID', values='StartTime')
But, as you can see, the SiteID remains in all rows. What I need now, is to keep it in a single row only. Any ideas?