I have a dataframeData I need it to look like
playerID Pts_1 Pts_2 Pts_3 Pts_4 Pts_5
adamsst01 1108 684 438 528 361
using python/pandas if anyone can help me please. I want to use the unique playerIDs to collate all their points
I tried to use pivot but that gave an error, ValueError: Index contains duplicate entries, cannot reshape.
I tried transpose but that gives the wrong shape, just wider.