I have a dataframe that has n number of columns. These contain letters, the amount of letters a column contains varies and a letter can appear in various amounts of columns. I need the code for a pandas dataframe to convert the sheet to columns starting with the letters, the rows should contain the numbers of the columns that that letter was in.
-
ABCDEF
ABDE. 11 1 BBCC -> 2 2 EFB. 3 3 4 4
The image describes my problem better. Thank you in advance for any help.