Skip to content

Instantly share code, notes, and snippets.

@charlietsai
Created November 9, 2016 00:26
Show Gist options
  • Select an option

  • Save charlietsai/b2367cc29a19400fe71604c31415d247 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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