Python pandas: create new column based on max value within group, but using value from additional (string) column

前端 未结 0 1457
我在风中等你
我在风中等你 2021-02-03 12:40

I have a pandas DataFrame with the following:

import pandas as pd

df = pd.DataFrame({\'group_id\': [1,1,2,2], 
                   \'name\':[\'Arthur\',\'Bob\',\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题