Display multiple output tables in an IPython laptop using Pandas

Now I know that I can output several diagrams from IPython pandas by pasting them into one graph space, which will appear in one output cell in the notebook.

Is it possible to do something similar with pandas HTML tables?

I get data from several tabs (about 15-20) in a spreadsheet and run it, although there is a set of regressions, and I would like to display the results together, possibly 2 up. But since the function to display the table displays only one, the last one is not sure how to approach. Ideas?

I will even gladly show up in the next weekend cells. I don’t know how to do it. But I think that I could do something really dirty by calling each tab (table) in a separate cell ... Ughh ... FWIW I'm on IPython 2.0 dev and pandas 13

+6
source share
1 answer

It does:

area-tabs=list(map(str, range(1, 28))) # for all 27 tabs #area_tabs=['1','2'] # for specific tabs for area_tabs in area_tabs: actdf,aname = get_data(area_tabs) #get_data gets the data and does a bunch or regression and table building aname,actdf,merged2,mergederrs,montdist,ols_test,mergedfcst=projections(actdf) IPython.display.display('Area: %s' % aname, mergederrs.tail(12)) IPython.display.display('Area: %s' % aname, ols_test) IPython.display.display('Area: %s' % aname, merged2) 

SO I can print all the results for each tab in a spreadsheet

+3
source

All Articles