From the course: Advanced Pandas

Unlock the full course today

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

Plotting with pandas

Plotting with pandas

From the course: Advanced Pandas

Start my 1-month free trial

Plotting with pandas

- [Instructor] Pandas is not a data visualization library by any stretch of the imagination. However, it does have built-in functionality to make use of Matplotlib on the fly. This is especially useful when performing exploratory data analysis, and you want a quick visual representation of your data. As a general rule, if you're presenting your findings with non-technical audiences, there are better options for crafting your visuals. To start us off, we're going to create a time series data frame with two randomly-generated values per period. There you go. Now, it couldn't be simpler for us to visualize this data in Pandas. Simply call plot. Now, we see a graph with two lines spanning the 50 periods in our dataset. An auto-generated legend has been placed on our visual as well. Notice the use of the semi-colon at the end of our function. This is included to prevent messy code output from being printed out along with…

Contents