I'm trying print two or more dataframe in the output of jupyter notebook cell using Python. Actually I am using a function from Wes Mckinney that perform this work but the dataframes don't have headers. I would like that each table has title specifying the name of each table, of course. I need a function similar to function(dfs,names_dfs=[''])
The function that actually I am using is
def side_by_side(*objs, **kwds):
from pandas.io.formats.printing import adjoin
space = kwds.get('space', 7)
reprs = [repr(obj).split('\n') for obj in objs]
print(adjoin(space, *reprs))
I hope you can help me. Thank's