I have 2 df one is
df1 = {'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']} df2 = {'col_1': [3, 2, 1, 3]} I want the result as follows
df3 = {'col_1': [3, 2, 1, 3], 'col_2': ['a', 'b', 'c', 'a']} The column 2 of the new df is the same as the column 2 of the df1 depending on the value of the df1.