0

Sorry, I know this is probably simple and covered in another post but I couldn't find it so:

I want to iterate through two lists and then store a result in an array based on the position of the inputs. So, for example:

z = np.array(len(xlist), len(ylist))

for x in xlist:
  for y in ylist:
    z[index of x, index of y] = f(x,y)

Thanks!

juanpa.arrivillaga
  • 88,713
  • 10
  • 131
  • 172
Alex
  • 427
  • 6
  • 12

0 Answers0