擅长:python、mysql、java
<p>你可以试试<a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.searchsorted.html" rel="nofollow">^{<cd1>}</a></p>
<pre><code>df1['st'] = np.searchsorted(df2.ksat, df1.ksat, side='left') + 1
</code></pre>
<p>如果<code>PERCENTILE</code>值不是序数,则有一个额外的步骤:</p>
^{pr2}$