I have two dataframes I want to check if a column from first dataframe contains values that are in the column of second dataframe, and if it does, create a column and add 1 to the row where it contains a value from first column first df:
| A header | Another header |
|---|---|
| First | apple |
| Second | orange |
| third | banana |
| fourth | tea |
desired output in second df second df:
| A header | Another header | match |
|---|---|---|
| First | sheet | 0 |
| Second | chair | 0 |
| third | apple | 1 |
| fourth | orange | 1 |