Feb-17-2022, 06:48 PM
(This post was last modified: Feb-18-2022, 06:39 AM by Larz60+.
Edit Reason: fixed indentation and added code tags
)
I'm using np.where and trying to reference a function call instead of putting in a static value, something like:
np.where(condition,function(arg1,arg2),0) | so if conditions returns true: call function, else set value to 0
My problem is that I can't just pass the current row and I don't know how to deal with an entire array in the function.
Without serialization it would be something like:
np.where(condition,function(arg1,arg2),0) | so if conditions returns true: call function, else set value to 0
My problem is that I can't just pass the current row and I don't know how to deal with an entire array in the function.
Without serialization it would be something like:
for x in array/series: if y > z: x = SET VALUE else: x= 0does anyone know what to do here?