Skip to content

Instantly share code, notes, and snippets.

@cengizhancaliskan
Created November 21, 2019 13:38
Show Gist options
  • Save cengizhancaliskan/df7479cff4ca134931ff66c7c0c59640 to your computer and use it in GitHub Desktop.
Save cengizhancaliskan/df7479cff4ca134931ff66c7c0c59640 to your computer and use it in GitHub Desktop.
Pandas highlight row
def highlight(row):
if row > 60:
return 'background-color: green'
else:
return 'background-color: none;'
df = df.style.applymap(highlight, subset=['Term', 'Count'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment