Python - How to square or raise to a power (elementwise) a 2D numpy array?

Python - How to square or raise to a power (elementwise) a 2D numpy array?

More to explore

Based on this image's title: “Python - How to square or raise to a power (elementwise) a 2D numpy array?