Returns the columns that meet a condition.
FINDCOL(condition)
condition |
- |
A binary series or array. |
A series, the column numbers that meet the condition.
W1: ravel(1..12, 4)
W2: findcol(W1 > 7)
W1 == {{1, 5, 9},
{2, 6, 10},
{3, 7, 11},
{4, 8, 12}}
W2 == {2, 3}
W2 indicates that columns 2 and 3 contain values that exceed 7.
A column is returned only once even if multiple values meet the condition.