1df.head(10).style.format({"BasePay": "${:20,.0f}",
2 "OtherPay": "${:20,.0f}",
3 "TotalPay": "${:20,.0f}",
4 "TotalPayBenefits":"${:20,.0f}"})\
5 .format({"JobTitle": lambda x:x.lower(),
6 "EmployeeName": lambda x:x.lower()})\
7 .hide_index()\
8 .applymap(lambda x: f”color: {‘red’ if isinstance(x,str) else ‘black’}”)