I am trying to create a new column that has a list of all entries of past columns that are non-null.
I would like to be able to be able to produce the desired column without having to iterate through each of the rows.
col1 col2 col3 output
a NaN b [a,b]
c d e [c,d,e]
f g NaN [f,g]
Any help would be greatly appreciated.