title: How to Highlight All Rows Based On Non-Empty Columns - Pandas
body: <p>I have a DataFrame that consists of a large sum of data. What I'm trying to do is to look through all values in a column called 'Type' and if it's not empty, highlight that entire row.</p>
  <p>This is what I have right now for the highlighting</p>
  <pre class="lang-py prettyprint-override"><code>def highlight_row(rows):
      if not rows is None:
          return ['background-color: blue'] * len(rows.values)
  
  df.style.apply(highlight_row, axis=1)
  </code></pre>
  <p>I'm trying to get this to highlight it in the data frame <code>df</code> that I'm exporting to a CSV file to view in excel.</p>