From the course: Introducing Jupyter

Unlock the full course today

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

Tables

Tables - Python Tutorial

From the course: Introducing Jupyter

Start my 1-month free trial

Tables

- [Instructor] Pyplot table function doesn't work as a standalone graph but it can be added to any other plot. It can be useful for supplying additional, contextual information. The notebook I have open borrows one of the bar graphs from the bar graph lesson earlier in this chapter and in this notebook I'll add in a table to that same figure. The arguments for the table function are shown here and I'll be using most of these in the table that I'll be building. cellText is the most important one, rowLabels and colLabels are very useful for adding context, and row and cellColours are useful for adding clarity and visual appeal. I have my bar chart that shows average temperatures for each season but I'd like to add a table to this figure that shows the minimum and maximum temperatures and what date they happen for each season. I have a few other functions that I'll be loading in here that will help me calculate the numbers I need, max_temp, min_temp and minmax_temps, which makes use of…

Contents