Jun-03-2023, 11:52 AM
There is no difference between using a function and using a lambda expression. In the above lambda expression, I think the else part should be
else (np.nan, np.nan)
. Also what does the zip()
do and why did you remove the result_type="expand"
?