Skip to content

Instantly share code, notes, and snippets.

@robdmc
Created February 23, 2016 19:30
Show Gist options
  • Select an option

  • Save robdmc/591470158ce8e2785d3a to your computer and use it in GitHub Desktop.

Select an option

Save robdmc/591470158ce8e2785d3a to your computer and use it in GitHub Desktop.
Add Styling to dataframes
# from
# http://pandas.pydata.org/pandas-docs/stable/style.html
df.style.background_gradient(cmap='viridis', low=1, high=0).set_precision(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment