python獲取最大、最小值

1.獲取數組極值,並返回索引html c = [-10,-5,0,5,3,10,15,-20,25]   print c.index(min(c)) # 返回最小值 print c.index(max(c)) # 返回最大值 2.對series求最值 file_path = 'D:/RecentReserch/TestData/alldayrequests2014.xlsx' df = pd.re
相關文章
相關標籤/搜索