title: How to highlight both a row and a column at once in pandas
body: <p>I can highlight a column using the syntax </p>
  
  <pre><code>import pandas as pd
  df = pd.DataFrame([[1,0],[0,1]])
  df.style.apply(lambda x: ['background: lightblue' if x.name == 0 else '' for i in x])
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TGnFb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TGnFb.png" alt="enter image description here"></a></p>
  
  <p>Similarly I can highlight a row by passing <code>axis=1</code>:</p>
  
  <pre><code>df.style.apply(lambda x: ['background: lightgreen' if x.name == 0 else '' for i in x], 
                 axis=1)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Q6BBJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Q6BBJ.png" alt="enter image description here"></a></p>
  
  <p>However I can't work out how to do both at once; the problem is that when I use <code>applymap</code>, I only get the values, not the names of the series that they come from.</p>