The square() method in Numpy is used to find the square of every element in a given array. The np square() method returns a new array with an argument value as the square of the source array elements. The source array remains unchanged.
The np square() is a utility function to get the square of the matrix elements quickly.
numpy.square(arr, out=None, where=True, dtyp
#numpy #python