Python | Numpy MaskedArray.__rmod__
numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__rmod__ every element in masked array is operated on binary operator i.e mod(%). Remember we can use any type of values in an array and value for mod is applied as the parameter in MaskedArray.__rmod__().
Return: Return value%self.
Example #1 :
We can see that value that we have passed through MaskedArray.__rmod__() method is used to perform the mod operation with every element of an array.
[0.0 2.0 2.0 2.0 2.0]
[[0.0 1.0 0.0 3.0 3.0] [3.0 3.0 3.0 0.0 0.3799999999999999]]