Hello my dataframe currently looks like this:
Clone ID Sequence Factor_1 Factor_2 Factor_3
clonename seq_data 1 5 4
clonename2 seq_data2 2 1 3
How to restructure dataframe efficiently so that:
Clone ID Sequence Factor Factor_population
clonename seq_data Factor_1 1
clonename seq_data Factor_2 5
...
clonename2 seq_data2 Factor_3 3
*edited the table format for clarity. My first question on StackOverflow and I tried my best to present the question clearly so apologies for those kind enough to try help solving this problem.