I have a sheet with data in this format
but I would like it reshaped to look like this
I've attempted Transposing the data using the code provided at this answer however the result is not what I want, and I can't seem to get my head around it. I feel like I'm missing something obvious, but the need to work with grouped columns is throwing me a little. I'm used to Python Pandas, and my Excel/Sheets skills are severely lacking.
I've provided all spreadsheets and an example of the use of the linked function in this demo spreadsheet.
Many thanks for any help!