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.

Leave a Reply

Your email address will not be published.

If you like the content of this blog, subscribe to my email list to get exclusive articles not available to anyone else.