How to create a new column with 1 values in df1 by matching for values in df2?

I think you are describing a join operation

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

1 Like