Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 479

Find row where values for column is maximal in a pandas DataFrame

$
0
0

How can I find the row for which the value of a specific column is maximal?

df.max() will give me the maximal value for each column, I don't know how to get the corresponding row.


Viewing all articles
Browse latest Browse all 479


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>