JuliaDB: convert a Int (0,1) column to Boolean

Hi, pretty straightforward question here:

How would I go about converting a JuliaDB table column of type Int64 to Boolean values so I can run counts…

I was thinking something like select(t, :is_bad => convert) but convert takes a positional argument which is the type to convert to and I’m not sure how to specify this

In this particular case you can use select(t, :is_bad => Bool). More generally, you can use anonymous functions for arbitrary transforms like select(t, :is_bad => x->convert(Bool, x)).


Thanks. That’s perfect