I have two numpy arrays ym and r_div with shapes (110,) and (120,). I want to divide ym with r_div, i.e. the first element of ym gets divided by the first element of r_div, the second element by second element and so on. I tried converting both the arrays to lists and dividing them, but no avail. Tried a truediv and map, but not able to get the values in map.
This is what I tried so far:
from operator import truediv
norm_y = map(truediv, ym_list, first)
and converting them to lists, and dividing them, which resulted in a TypeError.
The arrays don't match in shapes, but I want to use only the first 110 elements of r_div.