Index.any(self, *args, **kwargs)
[source]
Return whether any element is True.
Parameters: |
|
---|---|
Returns: |
|
See also
Index.all
Series.all
Not a Number (NaN), positive infinity and negative infinity evaluate to True because these are not equal to zero.
>>> index = pd.Index([0, 1, 2]) >>> index.any() True
>>> index = pd.Index([0, 0, 0]) >>> index.any() False
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Index.any.html