I want to use the column 'Qual' in Table 1 and categorise them according to the 'Level' in Table 2 in a separate worksheet, further displaying a separate column 'Qual level' of those levels in table 1
Table1:
ID | Qual |
---|---|
1234 | a |
3454 | b |
2767 | c |
2098 | a |
Table2:
Qual | level |
---|---|
a | AA |
b | BB |
c | CC |
Final output required:
ID | Qual | Qual Level |
---|---|---|
1234 | a | AA |
3454 | b | BB |
2767 | c | CC |
2098 | a | AA |
this is what I have tried so far:
df.groupby(['Qual','Level'])['Qual Level']
its been giving me an error and im not sure if this is the right method.