pandas.DataFrame.last_valid_index

pandas 3.1.1 · DataFrame · method

Find the last index label containing a usable value.

Call syntax

DataFrame.last_valid_index()

Run the example

Edit the example and select Run Python to see the result.

Parameters

This call takes no arguments.

Returns

type of index