I am aware similar questions have been asked before (How to merge two rows in a dataframe pandas, etc), but I am still struggling to do the following (except with pandas dataframe with many rows):
team_token day1 day2 day3 day4
0 abc 1 NaN NaN NaN
1 abc NaN 1 NaN NaN
2 abc NaN NaN NaN NaN
3 abc NaN NaN NaN 1
I want to combine the rows with the same team_token so that the end result looks like:
team_token day1 day2 day3 day4
0 abc 1 1 NaN 1
Thank you in advance.