I have a pandas DataFrame, with: '''
1st column = subject_id,
2nd column = voxel_type (categorical; T, P, or C),
3rd to 10th columns = floats
''' Since I have multiple rows for each subject, I want to collapse them all into one row, to leave only one row per subject. My first thought was to use groupby, as other questions on SO suggest. However, I have different row counts per subject... how do I approach this?
Thank you so much!