Right now I use the following user-defined function for np.where:
def np_where(condition, x, y){ if (condition) return x else return y }
I wonder if DolphinDB offers a built-in function for it?
Function iif is what you were looking for.
iif
548k questions
547k answers
4 comments
86.3k users