I have 2 dataframes. I want to update the 1st dataframe(df1) by adding the column values w.r.t A from 2nd dataframe(df2). I have already created new column(C) at the index(which will be a variable).
df1
A B
100 3454
150 2343
200 7655
250 3454
300 4565
df2
A C
200 4565
250 6647
300 9865
350 4653
400 0776
result df
A B C
100 3454
150 2343
200 7655 4565
250 3454 6647
300 4565 9865
350 4653
400 0776