Given a numpy array (np.arange(5, 30, 2)) and you are asked to retrieve all the values that are multiple of 3 and within the range of 5 and 25. Which of the following doesn’t return the required output? The required output is [ 9 15 21]
.
a.
boolArr = (arr < 25) & (arr>5) & (arr%3==0)
newArr = arr[boolArr]
b.
newArr = arr[(arr>5) & (arr<25) & (arr%3==0)]
c.
whfnc=np.where((arr<25) & (arr%3==0) & (arr%3==0))
arr[whfnc]
d.
arr[np.all([arr<25, arr%3==0, arr>5], axis=0)]
e.
boolArr = arr < 25 & arr>5 & arr%3==0
newArr = arr[boolArr]