I'm trying to combine two columns into a third based on the values. Original data
|Time| GearUp | GearDn|
|----|---------|-------|
| 1 | NaN | NaN |
|2 | NaN | DOWN |
|3 | NaN | NaN |
|4 | NaN | NaN |
|5 | UP | NaN |
|6 | NaN | NaN |
|7 | NaN | NaN |
Required result:
Time Gear
1 NaN
2 DOWN
3 DOWN
4 DOWN
5 UP
6 UP
7 UP
I tried using the where method but on each column in turn but the second use wrote over the data from the first time.
Thanks.