Consolidating Pandas Dataframe on 1 column while retaining data from multiple rows in other columns

Viewed 17

How can I consolidate a dataframe like below on the User while retaining values from other columns?

unconsolidated: enter image description here

df_consolidated: enter image description here

Any advice welcomed, even around better practice for consolidating in situations like this. The date column can be consolidated or keep the latest date, that shouldn't matter too much.

0 Answers
Related