Value to convert to radian or not we can decide by using another array filled with True and False.
import numpy as np
ar_deg=np.array([120,160,180])
ar_where=np.array([True,False,True])
ar_rad=np.radians(ar_deg,where=ar_where)
print(ar_rad)
Output
[2.09439510e+000 7.90505033e-322 3.14159265e+000]
out
We can store the output in an array. We used shape() to create array (ar_out) of same shape() of our main array ar_deg.
We used ones() to create array of same shape() of our input array with degree values.
import numpy as np
ar_deg=np.array([120,160,180])
ar_out=np.ones(ar_deg.shape) # array created to store result
ar_rad=np.radians(ar_deg,out=ar_out)
print(ar_rad)
print(ar_out)
# check of both arrays are same or not
print(ar_rad is ar_out) # True