i have a list df that looks like this:
>df
gene_id GO
LOC_Os02g43120.1 GO:0008270 GO:0005515
LOC_Os12g21850.1 GO:0003700 GO:0006355 GO:0005515 GO:0034645 GO:0043565
LOC_Os06g30330.1 GO:0005488
LOC_Os07g37690.1 GO:0016758 GO:0008152
Im not sure how to put it in the right word but i would like all the gene_ids with more than one GO to be separated into a different row.
Expected output:
GO:0008270 LOC_Os02g43120.1
GO:0005515 LOC_Os02g43120.1
GO:0003700 LOC_Os12g21850.1
GO:0006355 LOC_Os12g21850.1
GO:0005515 LOC_Os12g21850.1
GO:0034645 LOC_Os12g21850.1
GO:0043565 LOC_Os12g21850.1
GO:0005488 LOC_Os06g30330.1
GO:0016758 LOC_Os07g37690.1
GO:0008152 LOC_Os07g37690.1
Any help will be appreciated. Thank you