tbl_1:
+---+---+---+
| a | b | c |
+---+---+---+
| 1 | 2 | x |
| 3 | 4 | y |
| 5 | 6 | z |
+---+---+---+
tbl_2:
+---+---+---+
| a | b | c |
+---+---+---+
| 1 | 1 | a |
| 3 | 4 | b |
| 5 | 6 | c |
+---+---+---+
How do I append the duplicate rows in tbl_2
to tbl_1
as follows:
+---+---+---+
| a | b | c |
+---+---+---+
| 1 | 2 | x |
| 3 | 4 | y |
| 5 | 6 | z |
| 3 | 4 | b |
| 5 | 6 | c |
+---+---+---+
I've tried using duplicated()
but I can't figure out how to go from comparing within one DataFrame to comparing between DataFrames...