dataframe按照参数值的全排列排序

l=[False,True]

tf_lists = [list(i) for i in itertools.product(l,repeat=6)]

for i in permutations(cols, len(cols)):
for j in i:
sort_by.append(j)

ori_data.sort_values(by=sort_by, ascending=ascend_by, inplace=True)
posted @ 2022-09-25 16:13  Marklong  阅读(14)  评论(0编辑  收藏  举报