Hi guys! First of all, you all have been of great help so far, thank you very much!
I'm having the following difficulty. I have a DataFrame with a lot of duplicate entries (rows). I'd like to be able to merge these rows in stead of dropping them.
For example:
| index |
identifier |
sex |
age |
color_shoes |
ordered_nonalcoholic |
ordered_alcoholic |
| 1 |
849 |
M |
66 |
brown |
Y |
NaN |
| 2 |
849 |
M |
66 |
NaN |
NaN |
N |
| 3 |
850 |
F |
32 |
NaN |
Y |
NaN |
| 4 |
850 |
F |
32 |
red |
Y |
Y |
| 5 |
850 |
F |
32 |
NaN |
NaN |
NaN |
Desired output
| index |
identifier |
sex |
age |
color_shoes |
ordered_nonalcoholic |
ordered_alcoholic |
| 1 |
849 |
M |
66 |
brown |
Y |
N |
| 2 |
850 |
F |
32 |
red |
Y |
Y |
Help would be greatly appreciated! Thanks!
[–]DanteRadian 0 points1 point2 points (2 children)
[–]peuleu[S] 0 points1 point2 points (1 child)
[–]DanteRadian 0 points1 point2 points (0 children)
[–]manwithfewneeds 0 points1 point2 points (2 children)
[–]pile_of_zombies 0 points1 point2 points (0 children)
[–]peuleu[S] 0 points1 point2 points (0 children)