From the course: Advanced Pandas

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuring options using pandas

Configuring options using pandas

From the course: Advanced Pandas

Start my 1-month free trial

Configuring options using pandas

- [Instructor] So another Pandas feature I want you to take advantage of, is to configure your own options. Pandas has an option system which allows you to customize how the package works for you. Most often, this can be useful to change how results are displayed in Pandas. So here's an example. We'll start with this sample data frame of the top three nations in 2018 by global carbon dioxide emissions. The first option which comes in handy is to configure the maximum row size to display for a Pandas data frame. If we set the max row size to two, here's what we get. So you see two rows displayed, separated by an ellipses. That's what this option does. You can either use it to limit the screen space your displayed data frames take up or conversely to expand the row size, to reveal more of your data. Similarly, the max columns display option will reveal or hide columns. I find this most useful when viewing the head…

Contents