pandas python

How to highlight both a row and a column at once in pandas

I can highlight a column using the syntax

import pandas as pd
df = pd.DataFrame([[1,0],[0,1]]) x: ['background: lightblue' if == 0 else '' for i in x])

enter image description here

Similarly I can highlight a row by passing axis=1: x: ['background: lightgreen' if == 0 else '' for i in x], 

enter image description here

However I can’t work out how to do both at once; the problem is that when I use applymap, I only get the values, not the names of the series that they come from.