I have two data frames, I need to use the first dataframe to add a new column to second dataframe, Which has a value TRUE if it exists in first dataframe else FALSE.
The first dataframe has State and Region Name of University towns in USA
State RegionName
0 Alabama Auburn
1 Alabama Florence
2 Alabama Jacksonville
3 Illinois Chicago
The second dataframe has growth rates per quarter. It is indexed on State and RegionName
2008q3 2008q4
State RegionName
Alabama Jacksonville 499766.666667 487933.333333
California Los Angeles 469500.000000 443966.666667
Illinois Chicago 232000.000000 227033.333333
So the output dataframe will be
2008q3 2008q4 univ_town
State RegionName
Alabama Jacksonville 499766.666667 487933.333333 TRUE
California Los Angeles 469500.000000 443966.666667 FALSE
Illinois Chicago 232000.000000 227033.333333 TRUE
Any help will be very much appreciated
