基于pandas
ascending_fat_then_ascending_sodium = food_info.sort(["Lipid_Tot_(g)", "Sodium_(mg)"], ascending=[True, True])
行处理——排序
原文:http://www.cnblogs.com/arsh/p/5128826.html