Pandas对多列进行升降序排列

df = pd.DataFrame(rows, columns = ["llx", "lly", "urx", "ury", "text", "page"])
df.sort_values(['lly','llx'], ascending=[False,True])

猜你喜欢

转载自www.cnblogs.com/everfight/p/pandas_sort.html