return max value from panda dataframe as a whole, not based on column or rows

后端 未结 5 2010
离开以前
离开以前 2020-11-27 21:34

I am trying to get the max value from a panda dataframe as whole. I am not interested in what row or column it came from. I am just interested in a single max value within t

5条回答
  •  被撕碎了的回忆
    2020-11-27 22:05

    Max can be found in these two steps:

    maxForRow = allData.max(axis=0) #max for each row
    globalMax = maxForRow.max(); #max across all rows
    

提交回复
热议问题