Export multiple pandas crosstabs into one one html file with table of contents I have created a pandas dataframe as follows: