来源:https://stackoverflow.com/questions/63846137/how-to-select-rows-based-on-conditions-for-each-id 标签 python pandas dataframe pandas-groupby