<span class="nb">max</span><span class="p">(</span><span class="n">lifetimes</span><span class="p">)</span>
        <span class="k">if</span> <span class="n">m</span> <span class="o">==</span> <span class="n">np</span><span class="o">.</span><span class="n">inf</span><span class="p">:</span>
            <span class="c1"># Get rid of rows with death time infinity</span>
            <span class="n">numRows</span> <span class="o">=</span> <span class="n">Dgm</span><span class="o">.</span><span class="n">shape<