Skip to content

Instantly share code, notes, and snippets.

@chaliy chaliy/fix_pandas_table.py
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.