格式化2

python学习网 2020-07-11 14:40:03
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()

阅读(2348) 评论(0)