Is it possible to fill a column based a common column values between 2 dataframes?
For example the first df1 has this data:
group, num
12, 0
19, 0
43, 1
and the second df2:
group
11
11
11
12
12
12
12
24
24
25
43
43
and the output I want to have is this:
group, out
11
11
11
12, 0
12, 0
12, 0
12, 0
24
24
25
43, 1
43, 1
If the group from df1 value exist in df2 group column then fill the value of column num from df1 in the new df otherwise leave empty the cell.