A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Index.all.html below:

pandas.Index.all — pandas 2.3.1 documentation

pandas.Index.all#
Index.all(*args, **kwargs)[source]#

Return whether all elements are Truthy.

Parameters:
*args

Required for compatibility with numpy.

**kwargs

Required for compatibility with numpy.

Returns:
bool or array-like (if axis is specified)

A single element array-like may be converted to bool.

See also

Index.any

Return whether any element in an Index is True.

Series.any

Return whether any element in a Series is True.

Series.all

Return whether all elements in a Series are True.

Notes

Not a Number (NaN), positive infinity and negative infinity evaluate to True because these are not equal to zero.

Examples

True, because nonzero integers are considered True.

>>> pd.Index([1, 2, 3]).all()
True

False, because 0 is considered False.

>>> pd.Index([0, 1, 2]).all()
False

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4