Skip to content

Instantly share code, notes, and snippets.

@vikjam
Created February 13, 2021 06:54
Show Gist options
  • Save vikjam/18056f7fac083a213a63a61f1f8f9a22 to your computer and use it in GitHub Desktop.
Save vikjam/18056f7fac083a213a63a61f1f8f9a22 to your computer and use it in GitHub Desktop.
Display many rows of a pandas DataFrame
# Adapted from https://www.kaggle.com/jamesleslie/titanic-neural-network-for-beginners
def display_more(df, nrows=1_000, ncols=1_000):
with pd.option_context("display.max_rows", nrows, "display.max_columns", ncols):
display(df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment