我的数据
Column 1 Column 2 Column 3
"Task 1" ["emailofowner1","emailofowner2"] John Doe
"Task 37" ["emailofowner1","emailofowner2"] John Doe
我有许多这样的行,我希望我的输出是:
Column 1 Column 2 Column 3
["Task1","Task37"] ["emailofowner1","emailofowner2"] John Doe
1条答案
按热度按时间ru9i0ody1#
groupby
需要可哈希对象,而list不需要。您可以转换为元组以用作grouper:
输出: