I know it might be super easy but I am new to dataframe operations. I have 17 dataframes in total and I need to merge them into a single one. For example:
DF1:
| id | val_1 |
|-------|----------|
| A | 0 |
| B | 2 |
| C | 1 |
DF2:
| id | val_2 |
|-------|----------|
| A | 5 |
| D | 2 |
The desire result should be:
| id | val_1 | val_2 |
|-------|----------|----------|
| A | 0 | 5 |
| B | 2 | N/A |
| C | 1 | N/A |
| D | N/A | 2 |
What should be the correct method to use, merge
or concate
?
Thank you!