data_table = df.to_html(float_format=lambda x: '%6.2f' % x, classes=
    'table display')
data_table = data_table.replace('border="1"', 'border="0"')
data_table = data_table.replace('nan', '')
Python / Pandas - GUI for viewing a DataFrame or Matrix