.! operator not filtering missings values

Hello, good afternonn,

Why is not this code filtering off the missing values in their respective fields?
All the array values are 1(true), even that Price and Grade has missing values.

rowsToKeep = .!(ismissing.(data.Grade) .& ismissing.(data.Price))

I cannot reproduce what you report:

julia> .!(ismissing.([1,missing,3,missing]) .& ismissing.([1,2,missing,missing]))
4-element BitVector:
 1
 1
 1
 0

(as you can see the last value is false)

2 Likes