Using maptplotlib I have created 9 graphs which are combined in to a single pdf using the command savefig . However I need to be able to show the statistical analysis below each plot with .describe() . What would be the best way to do this?
asked Apr 2, 2015 at 13:21 537 6 6 gold badges 17 17 silver badges 41 41 bronze badgesPandas has the possibility to include a table with a plot. See the table kwarg to pandas.DataFrame.plot . See the docs: http://pandas.pydata.org/pandas-docs/dev/visualization.html#visualization-table
answered Apr 2, 2015 at 14:11 Jan Katins Jan Katins 2,309 1 1 gold badge 25 25 silver badges 36 36 bronze badgesThis looks like a good option. Is there a way to unstack the table so that only the statistics for one of my columns is being displayed horizontally from .describe()
Commented Apr 2, 2015 at 14:15It's a pd.DataFrame so you can manipulate it with the usual methods and slicer, e.g. df.describe()[["column1","column2"]] .