Using Pandas to Preview All Columns

Brent Smart
Apr 12, 2022

--

As you begin investigating your data set, you’re curious about what the data actually looks like. But when previewing that dataset, the middle columns are hidden by default. For example:

Preview of hidden columns.

pd.set_option(‘display.max_columns’, None) will display all columns in that notebook. You can replace None with the specific number of columns, if you like.

If you include this line of code once at the beginning of your notebook, you will be able to preview all columns each time you need to.

That’s it — Happy investigating!

Remember to clap below, and to also reach out with question at chatconsmartbre@gmail.com

--

--