You can’t do a normal ifelse the way you are. It’s a hail BooleanExpression, not a regular boolean. You’d have to do hl.if_else(hl.is_defined(mt.DP), mt.DP, 0)
You’re welcome. The “Table” one actually has lots of general info on it, like handling missing data. The “MatrixTable” one mostly just shows how things generalize to MatrixTables (i.e. annotate on Tables has corresponding annotate_rows, annotate_columns, and annotate_entries on MatrixTables).