I have a CSV loaded into Pandas that looks like this...
col1 | col2 | col3 | col4
--------------------------------
1 | red | big | round
1 | blue | small | square
1 | pink | small | triangle
1 | puple | big | rectangle
1 | green | big | round
I want to only keep rows where col4 is either round or triangle. I know I can do this...
df[df.col4 == 'round']
But how do I also include triangle in this conditinoal?
But how can I do the opposite and only keep the row if round or traignle?