Categories
Python Answers

How to expand the output display to see more columns of a Python Pandas DataFrame?

Spread the love

To expand the output display to see more columns of a Python Pandas DataFrame, we call the set_option method.

For example, we write

import pandas as pd
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)

to call set_option to set the values for max_rows, max_columns with width of each row.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *