Hello I have two sets of data frames
df :
| col1 | |
|---|---|
| Label | |
| adidas | 26% | 
| Jordan | 1.6% | 
| Asics | 1.7% | 
df1 :
| col2 | |
|---|---|
| Answer Code Label | |
| adidas | 11% | 
| Jordan | 16% | 
| Asics | 1% | 
I am trying to create this:
| Label | col1 | col2 | 
|---|---|---|
| adidas | 26% | 11% | 
| Jordan | 1.6% | 16% | 
| Asics | 1.7% | 1% | 
I have tried various methods and all produce the same error. For example
df = df.join(df1)
df.merge(df1, left_on='Answer Code Label',right_on='Label')
These are the errors I get :
Cannot join with no level specified and no overlapping names
KeyError: 'Label'
Any help would be appreciated
Thank you!
 
     
    