I have a following DataFrame:
| id | A | B | 
|---|---|---|
| 1 | Elle | 567998 | 
| 1 | Rand | 1234 | 
| 1 | Danny | 5678 | 
| 2 | Rand | 91011 | 
| 2 | Danny | 121314 | 
| 2 | Elle | 151413 | 
How do I transform it into a following dataframe:
| A | 1 | 2 | 
|---|---|---|
| Elle | 567998 | 151413 | 
| Rand | 1234 | 91011 | 
| Danny | 5678 | 121314 | 
I've tried using loops and Series but nothing worked.
 
    