I had a DataFrame like below:
column-a column-b column-c
0 Nan A B
1 A Nan C
2 Nan Nan C
3 A B C
I hope to create a new column-D to capture all non-NULL values from column A to C:
column d
0 A,B
1 A,C
2 C
3 A,B,C
Thanks!