Skip to content

Instantly share code, notes, and snippets.

@charlietsai
Created November 9, 2016 00:26
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlietsai/b2367cc29a19400fe71604c31415d247 to your computer and use it in GitHub Desktop.
Save charlietsai/b2367cc29a19400fe71604c31415d247 to your computer and use it in GitHub Desktop.
Pretty print Pandas DataFrame
from tabulate import tabulate
def pretty_print_df(df):
print tabulate(df, headers='keys', tablefmt='psql')
@endrebak
Copy link

endrebak commented Apr 9, 2018

Yes! Love it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment