I have a table with 2 columns:
Column 1 containing categorical elements [A A B C Other C B Other] and
Column 2 with string elements ["NaN" "" "" "NaN" "D" "NaN" "NaN" "E"].
My goal is to get a string array with elements from column 1 where each Other is replaced with the respective value from column 2 (from the same row),
i.e. ["A" "A" "B" "C" "D" "C" "B" "E"]
Is there a simple way to do this?
Best Answer