Circular masking an image in python using numpy arrays

I am trying to Circular Mask an image in Python by reading a code on web but completely lost in the Maths here: I got an image (image_data ) of type = numpy.ndarray with shape = (3725, 4797, 3)