I have the following data set in a numpy array:
Array 1:
[[a, 1, 20]
[a, 3, 40]
[b, 1, 20]
[b, 2, 40]
[c, 5, 90]]
Array 2:
[[a, 2]
[a, 5]]
What I'm trying to accomplish is the following: Array2[0,0]=a, and Array2[0,1]=2
I want to interpolate from the first array to find a,2,30.
To do this I'm using np.where(Array1==item)[0] which looks for 'a', I can't interpolate though because the dtype used to import was a string, not an int.
It's been a while since I've used Numpy so if I'm completely in the weeds please let me know.
'a'and2? And what other dtype would you use for'a'?a. Is it a string? a variable? What's thedtypeof these arrays?