title: Pandas: convert all column from string to number except two?
body: <p>Suppose we have </p>
  
  <p><code>&gt;&gt;&gt; df.dtype
  Name        object
  Height      object
  Weight      object
  Age         object
  Job         object</code></p>
  
  <p>Is there any simple way to covert all columns except Name and Job columns with .to_numeric() method?</p>
  
  <p>I have tried but it doesn't work</p>
  
  <p><code>df.iloc[df.columns != Name &amp; df.columns != Job] = pd.to_numeric(df.iloc[df.columns != Name &amp; df.columns != Job], errors='coerce')</code></p>