l</span> <span class="k">for</span> <span class="n">col</span> <span class="ow">in</span> <span class="n">X</span><span class="o">.</span><span class="n">columns</span> <span class="k">if</span> <span class="n">col</span> <span class="o">!=</span> <span class="n">output</span><span class="p">]</span>

    <span class="c1"># Impute missing values using the mean strategy</span>
    <span class="k">try</span><span class="p">:</span>
        <span class="n">imputer</span> <span class="o">=</span> <span class="n