I would like to get the row index of the row that contains certain values(more than one).
I have tried put the values that I would like to retrieve in a list but failed, I can only search the index one by one which is quite tedious.
Possible but tedious
rows.loc[rows['NO']=='NO'].index.values
rows.loc[rows['NO']=='Sub Total :'].index.values
rows.loc[rows['NO']=='Generated By:'].index.values
rows.loc[rows['NO']=='Product :'].index.values
Failed
rows.loc[rows['NO']==list1].index.values