First non-null value per row from a list of Pandas columns

Fill the nans from the left with fillna, then get the leftmost column:

df.fillna(method='bfill', axis=1).iloc[:, 0]

Leave a Comment