Last active
August 29, 2015 14:23
-
-
Save hellpanderrr/f416405e259e0986cecf to your computer and use it in GitHub Desktop.
Pandas highlight even rows in Ipython Notebook
This file contains 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
from IPython.display import HTML | |
HTML(''' | |
<style> | |
.df tbody tr:nth-child(even) { background-color: lightblue; } | |
</style> | |
''' + df.to_html(classes='df')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment