Pandas tips and tricks to help you get started with Data Analysis

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:

  1. Showing more rows
  2. Showing more columns
  3. Setting the max characters to be displayed
  4. Setting the precision for float columns
  5. Formating the display for large numbers
  6. Changing plotting backend
  7. Configuring the output of info()
  8. Resetting display options

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

8 Commonly used Pandas display options you should know
1.20 GEEK