Machine Learning, Towards Data Science, AI, Data Science, Data Preprocessing.
pivot_t_bold = pivot_t.style.applymap(df_style, subset=pd.IndexSlice[pivot_t["CART"].idxmax(),"CART"]) for col in list(pivot_t): pivot_t_bold = pivot_t_bold.applymap(df_style, subset=pd.IndexSlice[pivot_t[col].idxmax(),col]) pivot_t_bold The first row, the one without index name, is the algorithm