title: convert mixed list to floats in python
body: <p>I'm trying to write a function that will remove non-floats and convert all int to floating numbers. I've included some print statements from my own debugging process. I'd like the transformation that adds ".0" to int to return a list.</p>
  
  <pre><code>std_in= ['1', '2', '2.1', 'ab1', '1ab']
  </code></pre>
  
  <p>Results
      ['1', '2', '2.1']
      </p>
  
  <p>Desired results
      ['1', '2', '2.1']
      
      ['1', '2', '2.1']</p>
  
  <pre><code>def float_sort(std_in):
      float_sort = std_in
      sorted_float = ""
      float_sort = " ".join(float_sort)
      float_sort=re.findall(r"\b(^[+-]d+\e+\d+|\-\d+\.\d+|\-d+|\d+\.\d+|\d+)\b", float_sort)
      print(float_sort)
      [float(i) for i in float_sort]
      sorted_float = sorted(float_sort, key=len)
      print(type(sorted_float))
      sorted_float = " ".join(sorted_float)
      print(sorted_float)
      sorted_float = sorted_float.split()
  </code></pre>