How to get the values of a column according to multiple conditions of another column?

I’d write

df[in([value1, value2]).(df.column1), :column2]
1 Like