I am trying to color, highlight, or change fond of Python pandas DataFrame based on the value of the cell. e.g. if the cells on each rows are bigger than the cell in the fir
import numpy as np import pandas as pd df = pd.DataFrame(np.random.rand(4,3)) df.style.applymap(lambda x: 'background-color : yellow' if x>df.iloc[0,0] else '')