How can I label a column of strings into numbered groups based on another column containing substrings?
I have the 1st column that is around 4920 different chemical compounds. For example: 0 Ag(AuS)2 1 Ag(W3Br7)2 2 Ag0.5Ge1Pb1.75S4 3 Ag0.5Ge1Pb1.75Se4 4 Ag2BBr … … 4916 ZrTaN3 4917 ZrTe 4918 ZrTi2O 4919 ZrTiF6 4920 ZrW2 I have the 2nd column that has all the elements of the periodic table numerically listed atomic number 0… Read More How can I label a column of strings into numbered groups based on another column containing substrings?