df1 for example is
| col1 | col2 | col3 |
|---|---|---|
| abcdef | ghijkl | mnopqr |
| abcdef1 | ghijkl1 | mnopqr1 |
df2 is
| col1 |
|---|
| ghijkl1 |
essentially I want to delete rows from df1 where the column2 value doesn't appear in df2col1
the final df1 would be:
| col1 | col2 | col3 |
|---|---|---|
| abcdef1 | ghijkl1 | mnopqr1 |