10. Options and Settings
Options and Settings
Overview
pandas has an options system that lets you customize some aspects of its behaviour, display-related options being those the user is most likely to adjust.
Options have a full “dotted-style”, case-insensitive name (e.g. display.max_rows
). You can get/set options directly as attributes of the top-level options
attribute:
In [1]: import pandas as pd In [2]: pd.options.display.max_rows Out[2]: 15 In [3]: pd.options.display.max_rows = 999 In [4]: pd.options.display.max_rows Out[4]: 999
There is also an API composed of 5 relevant functions, available directly from the pandas
namespace: