📌  相关文章
📜  pandas 数据框按列名前 10 个值排序 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:03.830000             🧑  作者: Mango

代码示例1
print df
   0  Bytes  Client             Ip
0  1      1    1000   192.168.10.2
1  0      0    2000  192.168.10.12
2  2      2     500   192.168.10.4
3  3      3     159  192.168.10.56

print df.nlargest(3, 'Client')
   0  Bytes  Client             Ip
1  0      0    2000  192.168.10.12
0  1      1    1000   192.168.10.2
2  2      2     500   192.168.10.4