DataFrame.
lookup
Label-based “fancy indexing” function for DataFrame. Given equal-length arrays of row and column labels, return an array of the values corresponding to each (row, col) pair.
Deprecated since version 1.2.0: DataFrame.lookup is deprecated, use DataFrame.melt and DataFrame.loc instead. For an example see lookup() in the user guide.
lookup()
The row labels to use for lookup.
The column labels to use for lookup.
The found values.