来源:https://stackoverflow.com/questions/63990844/how-to-generate-values-based-on-conditions-for-new-columns 标签 python pandas dataframe pandas-groupby