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
2.1m questions
2.1m answers
60 comments
57.0k users