• 2024-07-28whystea1
    更改顺序insert、popdf.insert(0,'a',df.pop('a'))分组排序df['班级Python成绩排名']=df.groupby('班级')['Python成绩'].rank(method='min',ascending=False)离散化df['class']=df.cut(df['data'],q=2,l