df1 and df2 have the same data structure. I want to update df1's record with df2's when "key" values are matched and also add the records from df2 to df1 when their "key" value is not existed in df1, what kind of function should I use? Thanks.
df columns: assignee id issuetype key
df1:
assignee id issuetype key
Tom 1 bug TP-1
Jane 2 bug TP-2
Tim 3 bug TP-3
df2:
assignee id issuetype key
Tom 1 story TP-1
Anna 2 bug TP-2
Tim 3 bug TP-3
Jane 4 bug TP-4
df1 after updating using df2:
assignee id issuetype key
Tom 1 story TP-1
Anna 2 bug TP-2
Tim 3 bug TP-3
Jane 4 bug TP-4