change this to
(df > 0)  * (nc == nc)

which is our old pattern, or better to this (to use boolean and):

(df > 0)  & (nc == nc)