diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a7a69a6b835fb..44a58a7504a13 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -12022,8 +12022,8 @@ def last_valid_index(self) -> Hashable: Returns ------- -{name1} or {name2} - If level is specified, then, {name2} is returned; otherwise, {name1} +{name1} or scalar + If axis=None, then a scalar boolean is returned. Otherwise, a {name1} is returned with index matching the index argument. is returned. {see_also}