bigframes.pandas.Series.any#

Series.any() bool[source]#

Return whether any element is True, potentially over an axis.

Returns False unless there is at least one element within a series or along a Dataframe axis that is True or equivalent (e.g. non-zero or non-empty).

Examples:

For Series input, the output is a scalar indicating whether any element is True.

>>> bpd.Series([False, False]).any()
np.False_
>>> bpd.Series([True, False]).any()
np.True_
>>> bpd.Series([], dtype="float64").any()
np.False_
>>> bpd.Series([np.nan]).any()
np.False_
Returns:

If level is specified, then, Series is returned; otherwise, scalar is returned.

Return type:

scalar or bigframes.pandas.Series