Created
November 9, 2016 00:26
-
-
Save charlietsai/b2367cc29a19400fe71604c31415d247 to your computer and use it in GitHub Desktop.
Pretty print Pandas DataFrame
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
from tabulate import tabulate | |
def pretty_print_df(df): | |
print tabulate(df, headers='keys', tablefmt='psql') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes! Love it!