From 831f3c9f28741705ed9acd34bdcc8c7504fa2af7 Mon Sep 17 00:00:00 2001 From: Koki Inoue Date: Sun, 30 May 2021 04:20:15 +0900 Subject: [PATCH] DOC: Updates Index.any docstring from #40362 --- pandas/core/indexes/base.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 2a50ebd959ace..d9e8abda6e775 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6111,6 +6111,8 @@ def any(self, *args, **kwargs): Examples -------- + **any** + >>> index = pd.Index([0, 1, 2]) >>> index.any() True @@ -6118,6 +6120,16 @@ def any(self, *args, **kwargs): >>> index = pd.Index([0, 0, 0]) >>> index.any() False + + **all** + + >>> index = pd.Index([1, 2, 3]) + >>> index.all() + True + + >>> index = pd.Index([0, 1, 2]) + >>> index.all() + False """ nv.validate_any(args, kwargs) self._maybe_disable_logical_methods("any")