Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. df.head(10).style.format({"BasePay": "${:20,.0f}",
  2. "OtherPay": "${:20,.0f}",
  3. "TotalPay": "${:20,.0f}"})\
  4. .format({"JobTitle": lambda x:x.lower(),
  5. "EmployeeName": lambda x:x.lower()})\
  6. .hide_index()\
  7. .applymap(lambda x: f"color: {'red' if isinstance(x,str) else 'black'}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement