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
1.4m articles
1.4m replys
5 comments
57.0k users