cf.Data.all

Data.all()[source]

Test whether all data array elements evaluate to True.

Performs a logical and over the data array and returns the result. Masked values are considered as True during computation.

Examples

>>> print d.array
[[0 3 0]]
>>> d.all()
False
>>> print d.array
[[1 3 --]]
>>> d.all()
True

Previous topic

cf.Data.pmsize

Next topic

cf.Data.any

This Page