Skip to content

Instantly share code, notes, and snippets.

@michaeldebetaz
Last active June 25, 2023 14:37
Show Gist options
  • Save michaeldebetaz/167f7971c45195923eadcbde03783522 to your computer and use it in GitHub Desktop.
Save michaeldebetaz/167f7971c45195923eadcbde03783522 to your computer and use it in GitHub Desktop.
Display
# Display more rows and columns of the DataFrame
def display_all(df, n_rows=1000, n_cols=1000):
with pd.option_context("display.max_rows", n_rows, "display.max_columns", n_cols):
display(df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment