dq.where
where(condition: ArrayLike, x: QArrayLike, y: QArrayLike) -> QArray
Select values from two qarrays depending on a condition.
Parameters:
-
condition–Boolean array-like condition.
-
x–Values selected when
conditionis true. -
y–Values selected when
conditionis false.
Returns:
-
Qarray with values chosen from
xandy.