I have a dataset, lets say:
Column with duplicates value1 value2
1 5 0
1 0 9
And what I want
Column with duplicates value1 value2
1 5 9
I cannot figure out how to get this to work. The closest I got was using merge, but that left me with different suffixes.
Any ideas?
My real data looks like:
trial Time 1 2 3 4
1 '0-100' 0 100 0 0
1 '0-100' 32 0 0 0
1 '100-200' 0 0 100 0
.
.
.
2 '0-100' 0 100 0 0
I want to keep the trials separate, and just merge the Times
1 2 3? Or can that never happen?1 5 0 0 01 0 9 0 0So the only thing that would happen would be the other two columns that are filled with zeros need to get filled.