I have the following df :
ABF2
ABG2
ABH2
ABJ3
ABK4
ABM5
ABN6
ABQ7
My goal is to have the following data frame :
ABH2
ABM5
ABQ7
So basically the condition would be multiple :
if third char = H, M, Q or Z
To get the third char value I do as below :
DF.Col_Name[2::2]
Fact is that I don't really know how to apply multiple condition to retrieve the wanted DF. Also, what would be the quickest way to do this ?