Pandas have an options system that lets you customize some aspects of its behavior, display-related options being those the user is most likely to adjust. Let us see how to set the value of a specified option.
set_option()
Syntax : pandas.set_option(pat, value)
Parameters :
- pat : Regexp which should match a single option.
- value : New value of option.
Returns : None
Raises : OptionError if no such option exists
Example 1 : Changing the number of rows to be displayed using
display.max_rows.
Output :
👁 Image
Example 2 : Changing the number of columns to be displayed using
display.max_columns.