Python之dataframe按照某一列分組並排序,同時加上排名

    import pandas as pd data = {'year':['2018','2019','2018','2018','2019','2019','2018','2019'],        '數學':[83,90,98,90,88,88,88,89],        '英語':[92,89,90,78,83,90,91,95]} df = pd.DataFrame(data)
相關文章
相關標籤/搜索