.applymap - 셀단위
셀단위로 루프
def applymapDef(val): yellow = 'background-color: yellow' if val < 4 else '' return yellow .applymap( applymapDef , subset=[ 'AAA' , 'BBB' ] ) |
def applymapDef(val): yellow = 'background-color: yellow' if val < 4 else '' return yellow .applymap( applymapDef , subset=[ 'AAA' , 'BBB' ] ) |