格式化2

import  seaborn
import  pandas
excel=pandas.read_excel(r'E:\pandas练习\成绩单.xlsx')
color_map=seaborn.light_palette('green',as_cmap=True)
a=excel.style.background_gradient(color_map,subset=['test_1','test_2','test_3'])
a.to_excel()

posted @ 2020-07-11 11:02  马蹄哒哒  阅读(157)  评论(0)    收藏  举报