I have a dataframe looking like this.
col1 col2
0 something1 something1
1 something2 something3
2 something1 something1
3 something2 something3
4 something1 something2
I'm trying to filter all rows that have something1
either on col1
or col2
. If I just need the condition logic on a column, I can do it with df[df.col1 == 'something1']
but would there be a way to do it with multiple columns?