from IPython.core.display import display, HTML import pandas as pd d = {'col1': [1, 2.2], 'col2': [3, 4]} df = pd.DataFrame(data=d) df.style.set_properties(**{'text-align': 'center'}).highlight_max()