Skip to content

Display whole dataframe in Pandas

def display_full_dataframe(dta):
    """
    displays a dataframe without cutting anything off for being too long
    Arguments:
        dta {dataframe} -- a dataframe you wish to display
    """
    with pd.option_context("display.max_rows", None, "display.max_columns", None):
        print(dta)

Source

See also  CSS code snippet - How to change font colr?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.