Skip to content

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 condition is true.

  • y –

    Values selected when condition is false.

Returns:

  • Qarray with values chosen from x and y.