Suppose I have 2 different datasets for countries. Both have same countries, but slightly different:
dataset A:
col1 covid_cases region
russia 2 2
israel 3 1
russia 2 3
russia 2 4
russia 2 1
russia 2 6
dataset B:
col1 covid_cases income
russia 2 low
russia 2 low
israel 3 high
The region
column and income
column are independent.
In my original datasets I have 100 countries.
What's an efficient way to get this type of dataset:
col1 covid_cases region income
russia 2 2 low
israel 3 1 high
russia 2 3 low
russia 2 4 low
russia 2 1 low
russia 2 6 low
So order here in the dataset doesn't matter. I'm not interested in simply just taking one column from one dataset and adding it to another. I'm interested in adding the income column so that its values matches the countries income, just like in dataset 2.