Created
November 21, 2019 13:38
-
-
Save cengizhancaliskan/df7479cff4ca134931ff66c7c0c59640 to your computer and use it in GitHub Desktop.
Pandas highlight row
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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