title: I want to trim space and string from pandas dataframe
body: <pre><code>samplework['pH']=samplework['pH'].str.extract('(\d+)',expand=False).astype(float)
  </code></pre>
  <p>I tried this. but it change the values</p>
  <p>DATA:</p>
  <pre><code>pH
  6.80000 SIAc
  8.00000 MAI
  </code></pre>
  <p>Desired Output:</p>
  <pre><code>pH
  6.80000
  8.00000
  </code></pre>