Skip to content

Commit 831f3c9

Browse files
Koki InoueKoki Inoue
Koki Inoue
authored and
Koki Inoue
committed
DOC: Updates Index.any docstring from pandas-dev#40362
1 parent a811c96 commit 831f3c9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pandas/core/indexes/base.py

+12
Original file line numberDiff line numberDiff line change
@@ -6111,13 +6111,25 @@ def any(self, *args, **kwargs):
61116111
61126112
Examples
61136113
--------
6114+
**any**
6115+
61146116
>>> index = pd.Index([0, 1, 2])
61156117
>>> index.any()
61166118
True
61176119
61186120
>>> index = pd.Index([0, 0, 0])
61196121
>>> index.any()
61206122
False
6123+
6124+
**all**
6125+
6126+
>>> index = pd.Index([1, 2, 3])
6127+
>>> index.all()
6128+
True
6129+
6130+
>>> index = pd.Index([0, 1, 2])
6131+
>>> index.all()
6132+
False
61216133
"""
61226134
nv.validate_any(args, kwargs)
61236135
self._maybe_disable_logical_methods("any")

0 commit comments

Comments
 (0)