import pandas as pd
products = pd.read_excel("C:/Users/asus/Downloads/Code for 007/List.xlsx",index_col="ID")
# products.sort_values(by="Price",inplace=True,ascending=False)
products.sort_values(by=["Worthy","Price"],inplace=True,ascending=[True,False])
print(products)
pandas排序多重排序
最新推荐文章于 2023-10-16 15:46:19 发布