From e8a12bf2c484bb452817d2d506421a003d35083b Mon Sep 17 00:00:00 2001 From: SavviSam Date: Mon, 11 Mar 2024 20:04:20 -0600 Subject: [PATCH] updated returns for DataFrame.any/all to return either a Series or scalar --- pandas/core/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}