複数条件でソートする方法 2022年9月17日 / 1 min read View more blogs with the tag pandas , View more blogs with the tag python Table of Contents #はじめに #方法 はじめに Pythonで複数条件でソートする方法です。 方法 # col1(降順)、col2(昇順)、col3(昇順)でソートしたいときdf = df.sort_values( ["col1", "col2", "col3"], ascending=[False, True, True])