I have 2 Dataframes as below:
Dataframe1:
6 count
store_1 10
store_2 23
store_3 53
Dataframe2:
store_name location
store_1 location_a
store_2 location_b
I am trying to join the above two Dataframes such that I get the below output:
6 count location
store_1 10 location_a
store_2 23 location_b
store_3 53
I am trying to merge Dataframe1 with Dataframe2 using index id of the column and not by the column name.



store_name?df1.set_index(6).combine_first(df.set_index('store_name'))