📜  如何在多个索引熊猫中排序 - Python 代码示例

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

代码示例1
In [1]: grouped.sortlevel(["Manufacturer","Product Launch Date"], sort_remaining=False)

                                               Sales
Manufacturer Product Name Product Launch Date       
Apple        iPod         2001-10-23              34
             iPad         2010-04-03              30
Samsung      Galaxy       2009-04-27              24
             Galaxy Tab   2010-09-02              22