I'm working with aggregated data, which I need to dis-aggregate in order to process it further. The original df contains a value 'no. of students' per row and I need one row in the new df per student:
Original df:
faculty A faculty B faculty x male students 2 7 ... female students 4 3 ...
New df:
No. gender faculty ... 1 m A 2 m A 3 f A
and so on. The original df contains some more information (like nationality and regional info), but that could be dealt with the same way as with gender, etc. Obviously I'd start by transposing (df.T), but then the fun begins... I'm quite the beginner, any pointer would be very welcome.