I want to find what's the position of the following array, according to the table below.

So, here is an example:

I have this array : ['AA','CC','TC']

and I have this table:

[![enter image description here](https://i.stack.imgur.com/oynm8.png)](https://i.stack.imgur.com/oynm8.png)

Now, according to the array, my first value is 'AA'. So if you notice, we have A and A as the fist index, which we have to read in the table below. So first, we look in the rows of the table, and then we check the columns. we see, that the number of the row and of the columns in the value:12.

So far I have this code in JavaScript:

```
function cal_extinction_coefficient(str) {

var values_compare= [['Values', 'A','C','T'], ['A', 12,14,16], ['C',23,25,26],  ['T',31,34,37]];

var values_to_find=['AA','CC','TC']

let chunk=0;
var all_combLength= values_to_find.length;
for (var i = 0; i < all_combLength; i++) {
    for (let j = 0; j < values_compare.length; j++) {
         const final= times[j].includes(all_combinations[i].slice(0,1));

    }

}

```

However, I don't know how to access these values... I have the same resolution, but in pandas and with python...  

Can someone help me please?