Boolean false filter in update selection query

For the negation you can use

df[(df.country .== "A") .& (df.bool .!= true), :value] = 1
1 Like