NumPy provides numpy.deg2rad() to convert degrees to radians, and numpy.rad2deg() to convert radians to degrees.
Here's an example:
import numpy as np
degrees = 45
radians = np.deg2rad(degrees)
print(degrees, "degrees is equal to", radians, "radians")
radians = np.pi/4
degrees = np.rad2deg(radians)
print(radians, "radians is equal to", degrees, "degrees")