I have two dataframes. dataframe_a:
data | location_zone | test_hour | analysis_date ------------+---------------+-----------+------------------------ 10 | america | 12 | 2000-1-1 11 | america | 13 | 2000-1-2 21 | china | 14 | 2000-1-3 and dataframe_b:
data | location_zone | test_hour | analysis_date ------------+---------------+-----------+------------------------ 1 | china | 14 | 2000-1-3 2 | america | 13 | 2000-1-2 3 | america | 12 | 2000-1-1 And I need to combine these dataframes on corresponding location_zone, test_hour, and analysis_date, and add the data columns. The final result should be:
data | location_zone | test_hour | analysis_date ------------+---------------+-----------+------------------------ 13 | america | 12 | 2000-1-1 13 | america | 13 | 2000-1-2 22 | china | 14 | 2000-1-3