codedthinking / Kezdi.jl

Julia package for data manipulation and analysis
https://codedthinking.github.io/Kezdi.jl/
Other
21 stars 0 forks source link

bug: scalar functions should also allow missing #134

Open korenmiklos opened 3 days ago

korenmiklos commented 3 days ago
julia> @with getdf() begin
       @generate fyear = Main.get_year(founding_date)
       @generate life_span = Main.get_year(death_date) - Main.get_year(founding_date)
       @keep @if !ismissing(death_date) && death_date >= 10
       @tabulate fyear country @if fyear >= 1980 && country in [["AT", "DE"]]
       end

ERROR: TypeError: non-boolean (Missing) used in boolean context
Stacktrace:
  [1] year(days::Missing)