t_messy_data">[docs]</a><span class="k">def</span> <span class="nf">get_messy_data</span><span class="p">(</span><span class="n">df</span><span class="p">):</span>
  <span class="sd">r&quot;&quot;&quot;Function for testing... just messes up the input data with Nans and Infs.</span>

<span class="sd">  Parameters</span>
<span class="sd">  ----------</span>
<span class="sd">  df : a pandas data frame</span>
<span class="sd">    </span>
<span class="sd">  Returns</span>
<span class="sd">  -------</span>
<span 