Pandas is one of the most important libraries for Data Manipulation and Analysis. It not only offers data structure & operations for manipulating data but also prints the result in a pretty tabular form with labeled rows and columns.
In most cases, the default settings of Pandas display should work well, but you may want your data to be displayed in some format that other than its default one. Pandas has an options system that allows you to customize display-related options. Display options can be configured using either methods or attributes as follows:
## Use methods
import pandas as pd
pd.set_option()
pd.get_option()
## Use attributes, for example display max_rows
pd.option.display.max_rows
In this article, we’ll take a look at the 8 commonly used display options. This article is structured as follows:
info()
Please check out the Notebook for source code
For demonstration, we will be using the Titanic dataset available on Kaggle.
#python #data-science #data-analysis #pandas #display-options #8 commonly used pandas display options you should know