numpy.ma.MaskedArray class is a subclass of ndarray for manipulating numeric arrays with missing data. With the Numpy method MaskedArray .__ pow__ we can force elements with the value specified as a parameter.
Syntax: numpy. MaskedArray .__ rpow__
Return: Raise other to the power self, masking the potential NaNs.
Example # 1: strong>
In this example, we can see that after applying MaskedArray .__ rpow __ (), we can see that each item is powered with a value that is supplied as a parameter.
[3 9 27 81 243]
Example # 2:
[[ 1 4 9 16 25] [36 25 16 9 4]]
Shabbir Challawala has over 8 years of rich experience in providing solutions based on MySQL and PHP technologies. He is currently working with KNOWARTH Technologies. He has worked in various PHP-base...
A Practical, No-Nonsense Introduction to Python Development. You already know you want to learn Python, and a smarter way to learn Python 3 is to learn by doing. The Python Workshop focuses on buil...
Python Crash Course is the world's best-selling guide to the Python programming language. This quick and in-depth introduction to Python programming will get you started writing programs, solving prob...
If you’ve picked up this book, you’re probably aware of the extraordinary progress that deep learning has represented for the field of artificial intelligence in the recent past. In a mere five ye...