I have this dataset:
NAME SUBSET
Apple 48 – ABC – HH
Bat 72 – ACD – HH, 72 – FI, 36 – FE – PP
Cat ABC, 72 – AA – LL
From this data, I want to extract only the first instance of alphabet occurrence and omit the remaining part i.e. I want the output of the form:
NAME SUBSET
Apple ABC
Bat ACD, FI, FE
Cat ABC, AA
How will I be able to do it in Python? Please guide.