I have a dataframe as follows:
df
Name Sequence
abc ghijklmkhf
bhf uyhbnfkkkkkk
dmf hjjfkkd
I want to append the second column data to the below of the first column data in specific format as follows:
Name Sequence Merged
abc ghijklmkhf >abc
ghijklmkhf
bhf uyhbnfkkkkkk >bhf
uyhbnfkkkkkk
dmf hjjfkkd >dmf
hjjfkkd
I tried df['Name'] = '>' + df['Name'].astype(str) to get the name in the format with > symbol. How do I append the second column data below the value of first column data?