Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Using "Or" in the compute method for a pipeline

How is one supposed to do:


        out[:] = market_cap * ((market_cap > 4e9) * \  
            np.any(exchangeid == "NAS", exchangeid =="NYS") * \  
            (countryid == "USA") )