This needs to use `np.any(col.mask) for col ...`.  Using `any(col.mask)` uses the Python `any` which effectively iterates over `col.mask` in pure Python.  The outer `any` is fine.