human
First non-null value per row from a list of Pandas columns
assistant
Here is some code to get first non-null value per each row from dataframe `df`

df.stack().groupby(level=0).first()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.