title: How to convert pandas columns to double in for loop?
body: <p>I have a pandas dataframe called <code>df10</code>.</p>
  
  <pre><code>cols10 = list(df10.columns)
  </code></pre>
  
  <p>I want to change the data type to <code>double</code> where the column name starts with <code>"m_"</code></p>
  
  <pre><code>for param in cols10:
      if param.startswith("m_"):
          df10[[param]] = df10[[param]].apply(pd.to_double)
  </code></pre>
  
  <p>However, I'm getting this error: </p>
  
  <pre><code>AttributeError: 'module' object has no attribute 'to_double'
  </code></pre>