span class="n">number</span><span class="p">])</span><span class="o">.</span><span class="n">columns</span>

    <span class="c1"># Fill NaN in numeric columns with mean</span>
    <span class="n">data_df</span><span class="p">[</span><span class="n">numeric_columns</span><span class="p">]</span> <span class="o">=</span> <span class="n">data_df</span><span class="p">[</span><span class="n">numeric_columns</span><span class="p">]</span><span class="o">.</span><span class="n">fillna</span><span class="p">(</s