CodeNewbie Community 🌱

Matt Eves
Matt Eves

Posted on

Help - how to ID max value/col name in pandas data frame?

Hi all. First post, apologies in advance for errors in tags/location etc. Working on a python project involving pandas data frames and a bit stuck. Can anyone tell me how to:

  1. identify the max value in a given row and the column name that max value is in?
  2. Identify the second to max value in a given row and the column name that second highest value is in? If it helps, the values are all floats between 0 and 1 - thanks!

Top comments (1)

Collapse
 
abbaskhan8008 profile image
Abbas Khan

Panda Express Chow Mein is a beloved dish from the popular American Chinese restaurant chain, Panda Express. This savory stir-fried noodle dish features a delightful combination of crunchy cabbage, celery slices, and sliced onions, all tossed together with a flavorful sauce. Originating from the United States, it has become a favorite for its simplicity and delicious taste.
What is panda express chow mein