title: How to convert a vector including number and character into numeric vector in python?
body: <p>Is there anyway to do this without using forloop?</p>
  <p>Input: <code>c(&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;a&quot;)</code></p>
  <p>Expected output: <code>'c(1,2,3,NA)</code></p>
  <p>I am not familiar with python, so I use the format of R to describe the input and output.</p>