Extract non- empty values from the regex array output in python
<p>I have a column of type numpy.ndarray which looks like:</p>

<pre><code>         col
    ['','','5','']
    ['','8']
    ['6','','']
    ['7']
    []
    ['5']
</code></pre>

<p>I want the ouput like this :</p>

<pre><code>         col
          5
          8
          6
          7
          0
          5
</code></pre>

<p>How can I do this in python.Any help is highly appreciated. </p>