擅长:python、mysql、java
<p>使用<code>max</code>然后对元组使用zip分割列并转换为列表:</p>
<pre><code>top = df['% Renewable'].max()
print (top)
103
</code></pre>
<p>如果<code>Country</code>是索引,需要排名前三的国家使用:</p>
<pre><code>top3 = df['% Renewable'].nlargest(3)
tups = list(zip(top3.index, top3))
print (tups)
</code></pre>