an class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="s2">&quot;input.csv&quot;</span><span class="p">)</span>

<span class="n">imputer</span> <span class="o">=</span> <span class="n">HotDeck</span><span class="p">(</span><span class="n">df</span><span class="p">)</span>

<span class="n">imputed_df</span> <span class="o">=</span> <span class="n">imputer</span><span class="o">.</span><span class="n">run</span><span class="p"