You can just do this: df = df.groupby(by=['id'], as_index=False)['categorie'].max(). Or: df = df.groupby(by=['id'], ...
確定! 回上一頁