Skip to content

Instantly share code, notes, and snippets.

@rileypeterson
Last active February 23, 2025 21:48
Show Gist options
  • Save rileypeterson/3c96d198e40ed733a0df85d34d4fc37e to your computer and use it in GitHub Desktop.
Save rileypeterson/3c96d198e40ed733a0df85d34d4fc37e to your computer and use it in GitHub Desktop.
pandas defaults
# 1. pip show pandas
# 2. nano <Location path>/pandas/__init__.py
# Paste the following at the bottom of the file
set_option("display.max_columns", None)
set_option("display.width", 100000)
set_option("display.min_rows", 20)
set_option("display.max_rows", 20)
# Loads better pandas defaults everytime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment