Created
November 3, 2019 19:13
-
-
Save karpanGit/f2c4d9335c04e6dfdcfc344d0be17418 to your computer and use it in GitHub Desktop.
pandas: useful options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pandas options | |
# https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html | |
import pandas as pd | |
# do not fold dataframes | |
pd.set_option('expand_frame_repr',False) | |
# maximum number of columns | |
pd.set_option("display.max_columns",20) | |
# maximum number of rows | |
pd.set_option("display.max_rows",20) | |
# precision of float numbers | |
pd.set_option("display.precision",3) | |
# maximum column width | |
pd.set_option("max_colwidth", 50) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment