I have a df like this
The goal is to create new rows in this format
Is there any way of doing this in python?
many thanks in advance