Array find_index

select code,name,gender from employee
the result of above query is obtained in an array
ar_employee=con.exec "select code,name,gender from employee
I want to find a specific code in the array by using array.find_index but I am confused how to use it as the array contains fields (code,name,gender)