title: Replace Numeric Columns of dataset from other columns
body: <p>I have a dataset that has many columns, I want to extract the numeric columns and replace with the mean of the columns and then these modified columns replacing the ones in the original dataframe.</p>
  <pre><code>df1 = df.select_dtypes(include = [&quot;number&quot;]).apply(lambda x: x.fillna(x.mean()),axis=0)
  df.loc[df.select_dtypes(include = [&quot;number&quot;])] = df1
  </code></pre>
  <p>I managed to extract the numeric columns but I couldn't replace them, the idea is not to manually indicate which are those numeric columns.</p>