i'm having a mind wipe, i cannot for the life of me figure out a simple way of reversing this input to the output, any help would be appreciated.
input:
| level1 | level2 | level3 | level4 |
|---|---|---|---|
| 4 | 2 | 1 | NaN |
| 2 | 1 | NaN | NaN |
output:
| level1 | level2 | level3 | level4 |
|---|---|---|---|
| 1 | 2 | 4 | NaN |
| 1 | 2 | NaN | NaN |
Thanks