Here is a sample dataframe:-
A B C
23 45 30
54 39 NaN
NaN 45 76
87 32 NaN
I want a list (or list of lists) that contains column names where row values are not NaN.
Expected Output:-
A B C
A B
B C
A B
What is the right way of doing this? Thanking you in anticipation.