python输入逗号分隔_python-将多索引DataFrame的行合并为逗号分隔的列表
给定一个多索引DataFrame,我想组合重复的索引对并将其值列出为逗号分隔的列表.例如,输入:df = pd.DataFrame({'Last Name' : ['Deere','Deere','Foo' ,'Foo' ,'Man' ],'First Name': ['John' ,'Jane' ,'Kung' ,'Kung' ,'Karate'],'Value1': [ 1...