Personally, I like to adjust the parameters directly with the assignment operator, since it is easy to find through tab completion thanks to iPython. I find it difficult to remember what exact parameter names are, so this method works for me.
For example, all I have to remember is that it starts with pd.options
pd.options.<TAB>

Most options are available in display
pd.options.display.<TAB>

From here, I usually infer that the current value is as follows:
pd.options.display.max_rows 60
Then I install it the way I want:
pd.options.display.max_rows = 100
In addition, you should be aware of the context manager for parameters, which temporarily sets parameters inside a code block. Pass the option name as a string, followed by the value you want. You can pass any number of parameters in one line:
with pd.option_context('display.max_rows', 100, 'display.max_columns', 10): some pandas stuff
You can also return reset to a default value similar to this:
pd.reset_option('display.max_rows')
And reset all of them:
pd.reset_option('all')
It is still fine to set parameters via pd.set_option . I just find that using attributes directly is easier and less get_option and set_option .
Ted Petrou Nov 04 '17 at 17:46 on 2017-11-04 17:46
source share