I have this tabular table, but I want to make it into a simple form. The existing form is like this:
group mp_current mh_current mp_total mh_total
contractor 25 4825 0 0
I want to transform the table into this form:
group mp mh period
contractor 25 4825 current
contractor 0 0 total
where I would have one dedicated column for mp and mh, and one extra column as the period column.
How can I perform this in python?