I'm still fairly new to Python and Pandas and wanted to see if this was possible using pandas. I've read online that the best approach would be using idxmax.
What I'm trying to do:
Search through an excel file called 'Sample' - Check the 'Difference' column and find the highest value --> Grab the 'Metric' name and display into a notepad file/browser. Below, is a picture for reference.
Here is a small snippet that I have seen online, any assistance on how to do this would be appreciated.
Code:
metric_column = Metric[:,1].astype(int)
metric = metric_column[np.argmax(Difference)]