Mask
Applies to: python
A mask is a boolean array used to select or modify matching elements.
mask = x > 0
positive = x[mask]
See also: boolean-indexing, numpy-array
Applies to: python
A mask is a boolean array used to select or modify matching elements.
mask = x > 0
positive = x[mask]
See also: boolean-indexing, numpy-array