Say we have two 2-dimensional arrays, array1 and array2, or alternatively their panda.DataFrame equivalent. For some of the rows in array1, there can be only one or no row i