This function is used to convert the angles from degrees to radians.
numpy.radians(array, out)
It returns an array containing equivalent radians angles of the degrees given in the input array.
import numpy as np arr = [0, 30, 60, 90 ] print ("Input array : \n", arr) radval = np.radians(arr) print ("\n Radian value : \n", radval)
Output: