gm</span><span class="p">[:,</span> <span class="mi">1</span><span class="p">])</span>
    <span class="k">return</span> <span class="n">Dgm</span><span class="p">[</span><span class="n">keepRows</span><span class="p">,</span> <span class="p">:]</span></div>



<div class="viewcode-block" id="BettiCurve">
<a class="viewcode-back" href="../../../modules/TDA/persistence.html#teaspoon.TDA.Persistence.BettiCurve">[docs]</a>
<span class="k">def</span> <span class="nf">BettiCurve</span><span class="p">(</span><sp