擅长:python、mysql、java
<p>使用结果数据帧,我们需要<code>sorted</code>和<code>dropna</code></p>
<pre><code>result.apply(lambda x : sorted(x,key=pd.isnull)).dropna(thresh=1)
Out[1171]:
129 30 32 851 9730 9882
0 r170557 ARCA 100.0 NaN NaN NaN
1 r170557 ARCA 300.0 NaN NaN NaN
</code></pre>