循环通过groupby为pandas中的name分配数字我有一个样本数据集: import pandas as pd d = { 'ID': ['ID-1','ID-1','ID-1','ID-1','ID-2','ID-2','ID-2'], ' ...2024-04-26 已阅读: n次