Python Pandas - Highlighting maximum value in column

后端 未结 3 2099
栀梦
栀梦 2021-01-04 22:01

I have a dataframe produced by this code:

hmdf = pd.DataFrame(hm01)
new_hm02 = hmdf[[\'FinancialYear\',\'Month\']]
new_hm01 = hmdf[[\'FinancialYear\',\'Month         


        
3条回答
  •  独厮守ぢ
    2021-01-04 22:38

    If you are using Python 3 this should easily do the trick

    dfPercent.style.highlight_max(color = 'yellow', axis = 0)
    

提交回复
热议问题