# How to calculate the element-wise absolute value of NumPy array in Python # import libraryimport numpy as np  # create a numpy 1d-arrayarray = np.array([1, -2, 3])  print("Given array:\n", array)  # find element-wise# absolute valuerslt = np.absolute(array)  print("Absolute array:\n", rslt)