Implement case_when in Queryverse

Please see PSA: Make it easier to help you. It would be great if you could make a MWE.

Even without Match.jl, this is probably the syntax you are looking for:

df.TIME = map(df.TIME) do t 
t == 0 ? 95.9 :
t == 0.08 ? 96.08 :
t == 0.25 ? 96.25 :
t == 0.50 ? 96.5 :  
t == 1 ? 97.0 :
t == 3 ? 99.0 :
t == 8 ? 104.0 : missing
end
3 Likes