When creating a pivot table using the following code:
df = df.pivot_table(index=['Player', 'Pos'], values=['Min'], aggfunc='sum')
The csv export returns:
Player Pos Min
A GK 450
B CM 1
B DM 166
C RB 302
C RB,CB 169
How would I edit the code to return the following?:
Player Pos Min
A GK 450
B CM, DM 167
C RB, CB 471