from IPython.core.display import display, HTML
output = df.to_html(formatters={'var1': '{:,.2f}'.format, 'var2': '{:,.2f}'
    .format, 'var3': '{:,.2%}'.format})
display(HTML(output))
Format certain floating dataframe columns into percentage in pandas