For example, I have lists of column names, the equal relations and conditions
column = ['height', 'age', 'gender']
equal = ['>', '>', '==']
condition = [1.68, 20, 'F']
And I want to select the data with specific conditions in pandas DataFrame,
df = df[(df['height']>1.68) & df['age']>20 & df['gender']=='F']
Is it possible to use the three lists above (columns, equality, and condition) for realizing the selction?