DataFrame.
last_valid_index
Return index for last non-NA/null value.
Notes
If all elements are non-NA/null, returns None. Also returns None for empty Series/DataFrame.