How To Vectorize Code With Nested If And Loops In Python Stack Overflow

How To Vectorize Code With Nested If And Loops In Python Stack Overflow