This is my first attempt to use Python. I would appreciate any advice on how to post process data using Python.
I have a 2D array with two columns that consists of numbers: a and c. In addition, I have 1D array b that consists of some specific (and exact) values of a. What I want to do is to find c values at which a == b. My approach is to find indexes of a where a == b and then use b[a_indexes]. I fail at finding indexes.
'a' 'c'
1 20
40 70
83 67
1054 90
'b'
40
1054
Desired output:
40 70
1054 90
I tried:
a_indexes = a.index(b)
But it does not work.
I have this error:
'numpy.ndarray' object has no attribute 'index'