How To Replace Python For Loops With Numpy Operations

How To Replace Python For Loops With Numpy Operations