Returns a (subclass of) masked array, shaped like condition, where the elements are x when condition is True, and y otherwise. If neither x nor y are given, returns a tuple of indices where condition is True (a la condition.nonzero()).
Parameters: | condition : {var}
x : {var}, optional
y : {var}, optional
|
---|