numpy.ma.MaskedArray class is a subclass of ndarray for manipulating numeric arrays with missing data. With the Numpy method MaskedArray .__ xor__ we can get XOR elements by the value supplied as a parameter.
Syntax : numpy.MaskedArray .__ xor __ ($ self, value, /)
Return: Return self ^ value.
Example # 1:
In this example, we see that each element — it is xor with a value that is passed as a parameter.
[3 0 1 6 7]
Example # 2:
| tr> |
[[0 3 2 5 4] [7 4 5 2 3]]
Scientific progress has increasingly become reliant on large-scale data collection and analysis methodologies. The same is true for the advanced use of computing in business, government, and other are...
The genesis of this book began in 2012. Hadoop was being explored in mainstream organizations, and we believed that information architecture was about to be transformed. For many years, business intel...
A Problem-Solver’s Guide to Building Real-World Intelligent Systems. Data is the new oil and Machine Learning is a powerful concept and framework for making the best out of it. In this age of aut...
The Pragmatic Programmer: Your Journey To Mastery, 20th Anniversary Edition (2nd Edition). The Pragmatic Programmer is one of those rare technical books that you will read, reread, and re-read over...