title: TypeError: bad operand type for unary ~: float
body: <pre><code>df = df[~df["column"].str.contains("Total")]
  
  TypeError: bad operand type for unary ~: 'float'
  </code></pre>
  
  <p>Why does <code>.str.contains()</code> return a float? What should I be doing here?</p>