I have the following dataframe:
| Position Played | Champion | Result | ID | Side | 
|---|---|---|---|---|
| top | riven | 0 | 1 | blue | 
| jg | jax | 0 | 1 | blue | 
| top | fiora | 1 | 1 | red | 
| jg | lee sin | 1 | 1 | red | 
| top | mundo | 0 | 2 | blue | 
| jg | jax | 0 | 2 | blue | 
| top | kayle | 1 | 2 | red | 
| jg | olaf | 1 | 2 | red | 
and I would like to get the following dataframe:
| top | jg | Result | ID | Side | 
|---|---|---|---|---|
| riven | jax | 0 | 1 | blue | 
| fiora | lee sin | 1 | 1 | red | 
| mundo | jax | 0 | 2 | blue | 
| kayle | olaf | 1 | 2 | red | 
Edit1: The quoted functions use aggregation (like sum, mean) and I need it to actually keep the information intact
Edit2: I tried using the following command: df.pivot(['Result', 'ID', 'Side'], 'Position Played', 'Champion').reset_index()
But I got the error: ValueError: Index contains duplicate entries, cannot reshape
