pandas.Series.first_valid_index

Series.first_valid_index()[source]

Return index for first non-NA/null value.

Returns
scalartype of index

Notes

If all elements are non-NA/null, returns None. Also returns None for empty Series/DataFrame.