Skip to content

Instantly share code, notes, and snippets.

@chaliy
Last active August 29, 2015 14:01
Show Gist options
  • Save chaliy/dab09c627ae8f291f547 to your computer and use it in GitHub Desktop.
Save chaliy/dab09c627ae8f291f547 to your computer and use it in GitHub Desktop.
Monkeypatch Pandas DataFrame to render tables with bootstrap styles. Still no lack with ugly black borders.
import pandas as pd
pd.DataFrame._repr_html_ = lambda self: self.to_html(classes='table table-striped')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment